Opened 15 months ago
Closed 15 months ago
#34794 closed Bug (invalid)
Multiple file upload issue
Reported by: | Waseem Kntar | Owned by: | nobody |
---|---|---|---|
Component: | File uploads/storage | Version: | 4.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
Hello,
I need a multiple file field in a form, so that I saw this section in django docs
https://docs.djangoproject.com/en/4.2/topics/http/file-uploads/#uploading-multiple-files
And the file field is accepting a multiple file now.
The problem appear when I try to get those files by request.FILES
in the post method, it shows the following (a screenshot):
https://drive.google.com/file/d/1BIgd9mcQIZGf_pUzK4u-BPR56cVnKKEE/view?usp=sharing
To solve this, I just cast request.FILES into a dict, after this I managed to access the attachments list.
But why that happens in the MultiValueDict ?
Attachments (1)
Change History (2)
by , 15 months ago
Attachment: | Screenshot from 2023-08-23 11-14-20.png added |
---|
comment:1 by , 15 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Thanks for the ticket, however, this is a support question and Trac is not a support channel. Also, you seem to be using Django 4.0 and docs for Django 4.2. If you're having trouble understanding how Django works, see TicketClosingReasons/UseSupportChannels for ways to get help.