-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose filename* #790
Comments
Actually, |
Hmmm, this interesting. Can you send a minimal reproduction of this issue? Specifically the non ascii character issue. Multer uses Busboy to deal with handling file uploads under the hood. I'm not entirely sure if the Thanks! |
After some debugging, the problem is in Busboy: In my example the header of Then in the for loop it takes the ugly first when we call that function in the second time we send it a 'utf-8' string, and tells it to decode the text from source = 'binary' to target = 'utf-8'. I will open an Issue in busboy and then we need to bump multer's busboy dependency. for now as a workaround I managed to send the filename alongside the file itself like this: hope it helps! |
After some more investigation multer uses busboy version ^0.2.11 which gives 0.2.14. so to solve this issue we just need to migrate to higher version of busboy. |
I created a PR #1092 to bump up busboy version, please approve |
Version |
In the Content-Disposition header spec, there is a field called
filename*
that allows to stransmit utf8 characters.Neither
fieldname
notoriginalname
expose that field.Is it possible to get the value in that field from the multer execution ?
The text was updated successfully, but these errors were encountered: