small fix to file upload