#7812: read() in an InMemoryUploadedFile returns an empty string
---------------------------------------------+------------------------------
Reporter: kratorius | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: SVN
Resolution: | Keywords: upload
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by Jan Rademaker <[EMAIL PROTECTED]>):
Replying to [comment:3 kratorius]:
> I'm still trying to figure out what's happening since both at
{{{InMemoryUploadedFile}}} and {{{TemporaryUploadedFile}}} there's a
{{{file.seek(0)}}} in the {{{__init__}}}, but looks like if the file
pointer gets changed somewhere before I can call {{{.read()}}}.
Isn't this because the call to seek() missing from
source:/django/trunk/django/core/files/uploadhandler.py#8046 (the
file_complete method)?
--
Ticket URL: <http://code.djangoproject.com/ticket/7812#comment:4>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---