filepicker / filepicker-django

A django plugin to make integrating with Filepicker.io even easier
Other
94 stars 29 forks source link

Document or Demo how to do multi-file uploads #35

Open pydanny opened 9 years ago

pydanny commented 9 years ago

Okay, figured it out. It goes something like this:

class MyModelForm(forms.ModelForm):

    files = fpforms.FPFileField(
        widget=fpwidgets.FPFileWidget(
            attrs={'data-fp-multiple': 'true'}
        ),
        required=False
    )

    class Meta:
        model = MyModel
        fields = ("title", "description", "files")

If the maintainers want, I can add documentation explaining it.