views:

643

answers:

2

Is there any custom widget (or a special magic way) to upload multiple files (or a whole folder!) through one form field? I have tried this multifile widget but it uses many simple FileFileds.

+3  A: 

No, you can't do that - HTML file inputs don't allow it.

Daniel Roseman
+2  A: 

As Daniel said, File Input fields cannot support more than one file. However, there are ways around this using Things like SWFUpload. How you might integrate that workflow into a Django application, I'm not too sure.

Keryn Knight
SWFupload is perfect for multiple file uploads in django and easy to implement (its a classic upload). The only gotcha is if you need authentication; You have to be careful to use the swfupload.cookies plugin if you need authentication. also, add this decorator to your view to allow cookie login : http://github.com/revolunet/django-skeleton/blob/master/core/decorators.py#L19
jujule