fix broken repeating use of file uploading