#29510: QueryDict.copy() returns closed files when the type of file is
TemporaryUploadedFile
-------------------------------------+-------------------------------------
     Reporter:  Liquid Scorpio       |                    Owner:  Jeff
         Type:  Bug                  |                   Status:  assigned
    Component:  File                 |                  Version:  1.11
  uploads/storage                    |
     Severity:  Normal               |               Resolution:
     Keywords:  QueryDict, upload,   |             Triage Stage:  Accepted
  file                               |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Jeff):

 This is not the reported issue, however:

 In python 3, the `copy.deepcopy` function is not able to copy
 `TemporaryUploadedFiles` because python's `tempfile.TemporaryFile` is not
 serializable. I'm not certain how serious the issue is, or if we want to
 fix it, but I believe this makes QueryDicts unable to be copied if it
 contains a  `TemporaryUploadedFile` obj.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29510#comment:4>
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/071.1a3393e2b72c88ece3a8badabe56bf37%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to