#29510: QueryDict.copy() returns closed files when the type of file is
TemporaryUploadedFile
-------------------------------------+-------------------------------------
Reporter: Liquid Scorpio | Owner: Dan
| Madere
Type: Bug | Status: assigned
Component: File | Version: 1.11
uploads/storage |
Severity: Normal | Resolution:
Keywords: QueryDict, upload, | Triage Stage: Accepted
file |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):
> I stepped back, and pondered why are people copying a QueryDict
anyway...
This seems like the right thought to me. 🤔
I have to admit I'm struggling to see the use-case — Folks would have to
be making a copy of `request.FILES` for this to come up no? Why would you
want a mutable copy of that? (Maybe more ☕️ is needed :)
Copying `request.GET` in order to edit a query string makes sense.
Uploaded files though... 🤔
(Sorry if I'm being dense)
--
Ticket URL: <https://code.djangoproject.com/ticket/29510#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018460d3b939-0a1bec07-8836-43d1-98f1-7a90df5bfbe5-000000%40eu-central-1.amazonses.com.