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 ?
--
Ticket URL: <https://code.djangoproject.com/ticket/34794>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "Screenshot from 2023-08-23 11-14-20.png" added.
* status: new => closed
* resolution: => invalid
Comment:
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/34794#comment:1>