On Tue, 2008-03-04 at 08:58 -0500, Ray Cote wrote:
> I have file uploads working using newforms.
> 
> However, if I run into validation errors on the form (say a mandatory 
> field is not filled), then when the form re-displays for the user, 
> the file they previously selected is no longer selected.

This is normal browser behaviour: they don't redisplay any file
specified in file upload widgets to avoid phishing-style attacks. So
Django doesn't bother sending it through.

If you search in the archives, I seem to remember some people came up
with ways to pass the filename back in any case for manual display if
you want that, but it still won't be submitted as part of them form.

Regards,
Malcolm

-- 
Telepath required. You know where to apply... 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to