Howdy all,

I'm putting together an application that's using a file upload in
newforms (the target is images).

The problem that I'm having is that, when there's a validation error
elsewhere in the form, the image is 'lost' and the user has to
re-attach it to resubmit.

Because Django clears-out clean_data if there's a validation error,
I'm somewhat stuck as to how to pass back information.

What I'd like to do is, in the clean_my_file_field method, save the
file to disk, then be able to reference it on re-submit to continue
processing.

Has anyone implemented something like this, or have any suggestions?

Thanks,
  -- Ben

--~--~---------~--~----~------------~-------~--~----~
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