Fixing fileupload

Fixing #18