fix for fileupload
Merge pull request #370 from alexeyostapets/master

fix for fileupload