Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pydanny opened this issue Oct 11, 2014 · 1 comment
Open

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

pydanny opened this issue Oct 11, 2014 · 1 comment

Comments

@pydanny
Copy link

pydanny commented Oct 11, 2014

No description provided.

@pydanny
Copy link
Author

pydanny commented Oct 11, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant