fixes to fileupload