I have built a couple of forms in drupal 6.x and drupal 7.x, where we collect some info and give them the ability to upload their resume. Some of the fields are required and some are not. When I choose to upload a file and select the file I want to upload and hit submit ... the form validation kicks in and highlights the missing required fields, but at the same time, it is clearing the name of the file that I chose to submit. So, if the user thinks that I have already selected the file to upload and just corrects the error in the form and submits again, since the resume is not a required field, the form gets submitted without the file that was chosen before.
Is there any way to make the page remember the file chosen in the previous step?