﻿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
31293	MultiPartParser support double quotes	007	007	"Although the rfc2231 document does not indicate that values can be wrapped in double quotes. However, some third-party tools wrap the value in double quotation marks when wrapping HTTP requests (such as the filename of the file uploaded by PostmanCanary). This results in double quotes for the filename at the end of Django parsing.

Postman request body:
{{{
----------------------------677822685948106391633425
Content-Disposition: form-data; name=""file""; filename=""测试.txt""; filename*=""UTF-8''%E6%B5%8B%E8%AF%95.txt""
Content-Type: text/plain

test
----------------------------677822685948106391633425--
}}}

django got filename is `测试.txt""` not `测试.txt`

This is not a bug of Django. But I suggest Django do some compatibility processing.

CPython is also compatible with this situation.
[https://hg.python.org/cpython/file/default/Lib/test/test_email/test_headerregistry.py]




[https://github.com/django/django/pull/12485]

"	Cleanup/optimization	closed	HTTP handling	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
