Open jseutter opened 12 years ago
The form needs to have enctype="multipart/form-data"
specified, as detailed here: https://docs.djangoproject.com/en/dev/topics/http/file-uploads/?from=olddocs#basic-file-uploads
I will mark this as a new feature--namely, to determine whether a file field is included in the form and specify the necessary attributes dynamically. Alternatively, if that isn't feasible, to specify enctype="multipart/form-data"
on all forms.
Steps to recreate:
This was found in a clean virtualenv running Python 2.7, Django 1.4.1 and django-generate-scaffold 0.0.5.