https://github.com/ross/django-multifile
Re-usable Django app for accepting multiple files in form fields.
https://github.com/ross/django-multifile
Last synced: about 1 year ago
JSON representation
Re-usable Django app for accepting multiple files in form fields.
- Host: GitHub
- URL: https://github.com/ross/django-multifile
- Owner: ross
- Created: 2012-03-03T00:10:42.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-03T00:37:59.000Z (over 14 years ago)
- Last Synced: 2025-03-15T19:37:56.935Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 96.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Django MultiFile
================
This is a Django app that provides simple support for multiple-file input
fields in Django forms. This makes it easier to keep all your validation and
handling code in the form class.
It probably doesn't deserve to be an app, but I don't have enough repositories
on [GitHub][1]!
Usage
-----
Using this is pretty simple: just import `multifile.forms.MultiFileField` and
use it in a form!
Of course, you'll need to make sure you've got the media (in particular,
[jQuery][2] and the [Multiple File Upload][3] plugin) installed in the correct
place. By default, they're included as `MEDIA_URL/js/jquery.js` and
`MEDIA_URL/js/jquery.multifile.js`. If you need this to be somewhere else,
you'd probably be better offer just modifying the code than me hacking some
method of overriding media the paths.
License
-------
This package incorporates, but does not require, the *Multiple File Upload*
jQuery plugin by *Fyneworks.com*. Any of the various similar plugins for
jQuery or other JavaScript frameworks will also work!
[1]: http://github.com/thsutton/
[2]: http://www.jquery.com/
[3]: http://www.fyneworks.com/jquery/multiple-file-upload/