fixes to upload, filenames