I have a form where I simultaneously send several (say 10) files to the backend along with some other regular input fields.
When I find the verification problem in the backend, I show the form again and fill in the usual inputs (drop-down lists, text inputs, etc.), but I canβt fill in the file fields, forcing the user to select files from the file again.
The solution I think of is sending the base64 encoded view of the files and returning them to the form in case of a validation error, but I would like to know if there is an easier way.
source
share