file upload

Uploading files to other locations

I understand bonita uses documents to store files uploaded by users however they are stored in the bonita database and for me this is unnacceptable. Is there a way to change this so it's stored as a file in a place I wish or is there a way to upload a file via groovy script?