On Thu, Jul 10, 2008 at 4:46 AM, Ivan Sagalaev
<[EMAIL PROTECTED]> wrote:
> I've seen already two people highly confused with this thing. After
> successful validation of a form with file upload
> form.cleaned_data['fieldname'] contains an instance of a wrapper --
> newforms.fields.UploadedFile. People confuse it with the real
> core.files.uploadedfile.UploadedFile which is accessible through
> form.cleaned_data['fieldname'].data
>
> If I understand right the only point of a wrapper is holding an original
> name of a file that was uploaded. I think it would be better to get rid
> of the wrapper, put a read UploadedFile in cleaned_data and add
> "original_filename" as an optional parameter to it. Thoughts?

This was reported in #7614, and fixed in [7859], so if you get a new
copy of trunk, it should be all set.

-Gul

http://code.djangoproject.com/ticket/7614
http://code.djangoproject.com/changeset/7859

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

Reply via email to