Improve handling the re-uploading of files with form error