#13531: django.core.files.File throws an exception on _get_size
------------------------------------+---------------------------------------
Reporter: aarond10 | Owner: nobody
Status: reopened | Milestone:
Component: Uncategorized | Version: 1.2-beta
Resolution: | Keywords: File, Exception
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Comment (by douglasbagnall):
The attached patch shows one way to find the size, though now I think
about it, it is broken, because it leaves the file in a different state
(you really need to find the initial offset with tell(), seek to the end,
get size with tell, then seek back to the original place).
--
Ticket URL: <http://code.djangoproject.com/ticket/13531#comment:3>
Django <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.