fusionbox/django-fusionbox — pull request #37 by chroto (2012-06-15 19:57:59+00:00)
Title: Multifile

Adds `MultiFileWidget` and `MultiFileField` to the fusionbox.forms module.

Uses jquery.multifile.js.

```python
"""
app.forms.py
"""
from fusionbox.forms import MultiFileField

class MyForm(Form):
files = MultiFileField(required=False)
```

```python
"""
app.views.py
"""
def upload_form(request):
form = MyForm(data=request.POST or None, files=request.FILES)
if form.is_valid():
for media in form.cleaned_data['files']:
MediaFile.objects.create(file=media, name=media.name)
return render(request, template, context)