Fix submission uploading. It works on single files, multiple files, and ...

...when files are removed after selection.