Opened 5 months ago
Closed 5 months ago
#35534 closed Bug (invalid)
Request attribute upload handlers is immutable when method is POST
Reported by: | matsony_15 | Owned by: | nobody |
---|---|---|---|
Component: | Generic views | Version: | 5.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi, this is copy of #35447. I`m trying to use custom upload handler as its mentioned here (https://docs.djangoproject.com/en/5.0/topics/http/file-uploads//), but when request method == POST upload_handlers atribute of request has type immutable list and throws an error. I created a test repo and provided some additional info in README.md here https://github.com/Smoooky/custom_upload_handler
Change History (2)
comment:1 by , 5 months ago
comment:2 by , 5 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This feels like a duplicate of #26049
In the docs there is a note
I suspect the issue is that you're accessing
request.POST
in the init ofProgressBarUploadHandler
If you want to discuss this further, I recommend taking this to the forum 👍