Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 33 lines (25 sloc) 1.176 kb

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!

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 and the Multiple File Upload 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!

Something went wrong with that request. Please try again.