django-debug-toolbar icon indicating copy to clipboard operation
django-debug-toolbar copied to clipboard

Log when form is using file fields without proper enctype attribute on the form.

Open tim-schilling opened this issue 3 years ago • 0 comments

One of the issues that can trip up new developers is the fact that forms require enctype="multipart/form-data" when there's a file being uploaded. If a developer doesn't know this, it can be hard to track down. I think it'd be reasonable to have the toolbar inspect the loaded HTML content and inspect it for invalid configurations. The first of which being a <input type="file" ..> /> in a form that isn't defined as <form enctype="multipart/form-data">.

tim-schilling avatar Oct 08 '22 00:10 tim-schilling