Changes between Initial Version and Version 1 of Ticket #34582


Ignore:
Timestamp:
May 20, 2023, 2:34:15 PM (19 months ago)
Author:
Tim Graham
Comment:

Your code attrs={'allow_multiple_selected': True} isn't correct. Please read https://docs.djangoproject.com/en/stable/topics/http/file-uploads/#uploading-multiple-files or see TicketClosingReasons/UseSupportChannels to get help. This ticket tracker isn't a support channel for asking questions.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34582

    • Property Component UncategorizedFile uploads/storage
    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #34582 – Description

    initial v1  
    11
    22In Version 4.1 of Django, I could upload multiple files using the form codes below.
    3 
     3{{{
    44class ResumeUpload(forms.ModelForm):
    55    class Meta:
     
    99            ‘resumes’: ClearableFileInput(attrs={‘multiple’: True}),
    1010        }
    11 
     11}}}
    1212But when I upgraded to version 4.2, the code no longer works, I could not select multiple files for upload.
    1313
    1414I got a post online that says 'allow_multiple_selected': True, in the code below, should replace ‘multiple’: True as in the code above, but yet it does not work.
    15 
     15{{{
    1616 widgets = {
    1717            'file': forms.ClearableFileInput(attrs={'allow_multiple_selected': True})
    1818        }
    19 
     19}}}
    2020Please, is there any other means to upload multiple files?
    2121
Back to Top