#34794: Multiple file upload issue
------------------------------------------------+------------------------
Reporter: Waseem Kntar | Owner: nobody
Type: Bug | Status: new
Component: File uploads/storage | Version: 4.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
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 ?
--
Ticket URL: <https://code.djangoproject.com/ticket/34794>
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/0107018a21fde011-38e322cc-d398-42ba-b573-ca0accfb4c24-000000%40eu-central-1.amazonses.com.