﻿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
28744	enctype on <input> if FileField	Thomas Güttler	nobody	"I think it would be feasible to add the attribute `enctype` to html input elements for FileFields.

Related docs: https://developer.mozilla.org/de/docs/Web/HTML/Element/Input#attr-formenctype

My use case: to be able to stop this useless dancing in admin:


{{{
grep -rsi 'has_file_field' .

./contrib/admin/options.py:            'has_file_field': True,  # FIXME - this should check if form or formsets have a FileField,


./contrib/admin/templates/admin/change_form.html:<form {% if has_file_field %}enctype=""multipart/form-data"" {% endif %}action=""{{ form_url }}"" method=""post"" id=""{{ opts.model_name }}_form"" novalidate>{% csrf_token %}{% block form_top %}{% endblock %}


}}}

 "	New feature	closed	Forms	dev	Normal	invalid			Accepted	0	0	0	0	0	0
