Keep form files after validation error
<p>I have a form where I simultaneously send several (let's say 10) files to the backend, along with some other regular input fields. </p>

<p>When I find a validation problem in the backend I display the form again and fill the regular inputs (dropdowns, text inputs, etc.), but I cannot fill the file fields, forcing the user to select the files from the file directory again.</p>

<p>The solution I think of is sending the base64 encoded representation of the files, and put them back in the form in case there is a validation error, but I would like to know if there is a simpler way. </p>