Hi,
I think it would be good to have an option like "resetOnSubmit" true/false for FileUploadField.
Now it resets by default on form submitting, but if an error occurs during uploading and a file was not uploaded, a user will have to choose a file again.
One thought more - probably, it would be best to reset FileUploadField on successful upload.
What do you think?
The related code of FileUploadField.
Code:
extractFileInput: function() {
var fileInput = this.fileInputEl.dom;
this.reset();
return fileInput;
}
The extractFileInput is called during form submitting.