Keep in mind that on the client side, the values of upload fields point to 
file locations on the user's computer. For security reasons, these 
locations are not communicated to the server, so there is no way for the 
server to send them back and therefore re-populate the fields with those 
locations. The user simply has to re-select the files on their system.

You could implement a system whereby even upon validation failure, you 
still retain the uploaded files on the server, and in the returned form 
with errors, simply disable the upload fields (indicating that the files 
have already been uploaded). When the form is re-submitted, you would then 
need a way to associate the previously uploaded files with the new record 
created by the submission. You might also want to clean up orphaned files 
that are uploaded but not followed by a successful form submission within 
some reasonable time.

Anthony

On Thursday, January 24, 2013 9:40:34 AM UTC-5, Ramos wrote:
>
> Hello
>
> IS there any way to avoid clearing upload fields when the form detects 
> errors in fields?
>
> Only uploaded fields are cleared. the others are not
>
> In a  form with 10 upload fields if the users forgets one of them and 
> submits the form, has to repeat all of them .
>
> Thats anoying..
>
>
> Thank you
>
>

-- 



Reply via email to