Skip to content Skip to sidebar Skip to footer

How To Retain File Input Value After Form Submission With Errors?

I have what seems to be a rather basic question and wanted to confirm how best to deal with it. I have a form with a number of inputs one of which is a file input. On submission of

Solution 1:

i think you already suggested the answer to your problem . it owuld be better to validate other fields of the form using ajax and don't submit the file initially. anbd if you have some problems with the file you can have some basic checks for your file using like file extension using ajax


Post a Comment for "How To Retain File Input Value After Form Submission With Errors?"