Hey, I have the following HTML-code autogenerated for me by Django:
<tr><th></th><td><input type="file" name="afbeelding1" id="id_afbeelding1" /></td></tr> <tr><th></th><td><input type="file" name="afbeelding2" id="id_afbeelding2" /></td></tr> <tr><th></th><td><input type="file" name="afbeelding3" id="id_afbeelding3" /></td></tr> <tr><th></th><td><input type="file" name="afbeelding4" id="id_afbeelding4" /></td></tr> That's ok according to my models.py: afbeelding1 = models.FileField(upload_to='media/afbeeldingen/ gastenboek/', verbose_name="", blank=True) afbeelding2 = models.FileField(upload_to='media/afbeeldingen/ gastenboek/', verbose_name="", blank=True) afbeelding3 = models.FileField(upload_to='media/afbeeldingen/ gastenboek/', verbose_name="", blank=True) afbeelding4 = models.FileField(upload_to='media/afbeeldingen/ gastenboek/', verbose_name="", blank=True) Now, when I upload a file by using one of the input-fields, I get the following in request.POST: <QueryDict: {u'afbeelding4': [u''], u'afbeelding2': [u''], u'afbeelding3': [u'dmz-cursor-theme_0.4.1.tar.gz'], u'afbeelding1': [u'example.png']}> This seem ok, since I only used field 3 and 1. But when I look at request.FILES, I get: <MultiValueDict: {}> It shouldn't be empty, should it? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---