#13750: ImageField accessing height or width and then data results in "I/O
operation on closed file"
--------------------------------------+------------------------------------
     Reporter:  ROsborne              |                    Owner:  aethemba
         Type:  Bug                   |                   Status:  assigned
    Component:  File uploads/storage  |                  Version:  1.2
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  1
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by timgraham):

 * needs_better_patch:  0 => 1


Comment:

 I don't see a compelling reason to automatically open the file. That
 change would be backwards incompatible for anyone who is accessing other
 attributes but doesn't care about the image (they would now have to close
 it). Can we simply document the behavior in docs/topics/files.txt?

--
Ticket URL: <https://code.djangoproject.com/ticket/13750#comment:14>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.4603f246b9b735c9e9bd76bdaa9acc12%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to