This is tricky. When the form is submitted, it doesn't send the location of the file on the user's computer -- it sends the actual file. Even if you knew the location of the file on the user's computer, you couldn't pre-populate the form field with that value because browsers won't allow it for security reasons (otherwise malicious users could steal files via hidden upload fields).
I think the only option is to temporarily store the actual file upon first submission (i.e., the submission that fails validation). Then the returned form with the error would indicate the submitted file has been saved (with possible option to re-select an alternative). Then on successful submission, permanently save the temporary file. Of course, you'll have to do some garbage collection of temporary files for cases where the form is not successfully re-submitted. Anthony On Monday, December 5, 2011 11:08:35 AM UTC-5, thodoris wrote: > > Is there any way to keep the value that was inserted on an upload > field after failing to validate the form due to another field, so that > the user doesn't have to search for the file again? >