I'm late to the party, but I've been trying to figure this out for a while and finally have a solution.
Have a look at the code used here: https://code.djangoproject.com/ticket/12446
You can access multipart values with getlist. If my HTML form was:
<form enctype="multipart/form-data" action="" method="post">
<input type="file" name="myfiles" multiple>
<input type="submit" name="upload" value="Upload">
</form>
My django code to process it would look like:
for afile in request.FILES.getlist('myfiles'):
# do something with afile
Writing a form field/widget to handle this properly is my next step. I'm still rather new to using Django, so I'm learning as I go.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…