Minor changes to file upload