Description
Hi,
I found recently that something changed regarding the handling of filename containing utf-8 characters; they seem to be passed as-is, which was not the case before.
After investigating a bit I could reproduce the issue with the minimal code in https://github.com/CleyFaye/test-multer
I found that the browser side just pass the name as-is in the "filename" part of the header.
I've seen another issue related to using "filename*", but there is two problem with that: the browser's formdata does not use this, and RFC7578 actually says it should not be used.
What would be the proper way to handle this? Obviously it is possible, server side, to convert the content of originalname
by putting all characters as bytes in an array then interpreting it as an utf-8 string (it does work), but since I never had this issue with older versions, I suspect something changed in the way multer handles this.