Update fileupload.js

FIX for wrong behaviour while uploading empty extension filenames