You can't keep the value that goes in the form on the client side because 
it's a reference to a file path on the client machine and you don't 
actually receive that at the server. You could keep the file itself on the 
server and provide some indication in the form returned to the client that 
the file was retained and need not be uploaded again, but web2py doesn't 
include any automatic functionality for that, so you'd have to code your 
own.

Anthony

On Thursday, March 28, 2013 12:08:24 PM UTC-4, Lamps902 wrote:
>
> When a form has errors, the value of an upload field is reset upon 
> submission. Is there a way to retain this value, or does this pretty much 
> have to be handled manually (i.e. by storing the value of the upload field 
> or by prompting the user to specify the file again)?
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to