JangoSteve / remotipart

Rails jQuery file uploads via standard Rails "remote: true" forms.
http://os.alfajango.com/remotipart
Other
1k stars 215 forks source link

File Upload fields disappear on form validation failure #185

Closed ankitjain200292 closed 6 years ago

ankitjain200292 commented 6 years ago

If I have multiple files on the same form and on validation fails it is removing the file fields from the form. EX: If i have 3 files on the form and validation field it will remove the 1 file field and 2 file fields will be present and if again validation fails then the 1 file field will be visible.

Please let me know in case anybody else facing the issue and any help is much appreciated.

Banner image field gone after validation fails. screenshot from 2017-10-31 17 38 58

znz commented 6 years ago

I think this is fixed in https://github.com/JangoSteve/remotipart/pull/178 . But it have not released yet.

ankitjain200292 commented 6 years ago

Thanks for the help @znz