At 1:31 AM +1100 3/5/08, Malcolm Tredinnick wrote:
>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

Thanks for the pointer (and the note that this is expected behavior).
--Ray

-- 

Raymond Cote
Appropriate Solutions, Inc.
PO Box 458 ~ Peterborough, NH 03458-0458
Phone: 603.924.6079 ~ Fax: 603.924.8668
rgacote(at)AppropriateSolutions.com
www.AppropriateSolutions.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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