0

I have a form with a filefield, I submit the form to validate file content, however, I want to keep this form dirty, how can I achieve this ? Im using Extjs 4.2

jeff wu
  • 45
  • 6
  • Give some detailed scenario? – Yellen Apr 22 '15 at 08:34
  • I have a form which can upload a file to backend, before upload, I want to try validate firstly. So I submit the form after setting file to validate, and after press submit button, submit the form to upload – jeff wu Apr 22 '15 at 08:42
  • You can save the form values in the localstorage or save them in a coockie and reset the form after reloading the page.... – marcel Apr 22 '15 at 08:47
  • I have the same problem, i found another way, see this https://stackoverflow.com/questions/26211812/file-upload-field-is-reset-when-submit-form/27903159#27903159 – Macthink Yu Aug 21 '17 at 07:17

1 Answers1

0

Thanks, finally I save the value and this.setRawValue(this.filePath); after submit

jeff wu
  • 45
  • 6