enctype attribute. If None, will automatically be set to multipart/form-data if a FileField is present in the form.
However, in an application I work on, this seems not to be the case. I had to set enctype explicitly in the template (it does not work without the enctype below):
I read in the docs:
enctype attribute. If None, will automatically be set to multipart/form-data if a FileField is present in the form.
However, in an application I work on, this seems not to be the case. I had to set
enctype
explicitly in the template (it does not work without the enctype below):The form declaration is as follows:
and it is instantiated with