﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19610	Include enctype in example forms	will@…	nobody	"On this page:
https://docs.djangoproject.com/en/dev/topics/forms/

It took me ages to figure out the reason files weren't uploading was because I'd left out enctype=""multipart/form-data"" from my <form> tag in my template.
I suggest changing the template examples from:


{{{
<form action=""/contact/"" method=""post"">{% csrf_token %}
{{ form.as_p }}
<input type=""submit"" value=""Submit"" />
</form>
}}}


to:


{{{
<form action=""/contact/"" method=""post"" enctype=""multipart/form-data"">{% csrf_token %}
{{ form.as_p }}
<input type=""submit"" value=""Submit"" />
</form>
}}}
"	Cleanup/optimization	closed	Documentation	1.4	Normal	fixed			Ready for checkin	1	0	0	0	1	0
