Skip to content
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

Why Postman filename is right, but in the web I use formdata.append() the filename is rong? #1222

Open
TiuBen opened this issue Aug 25, 2023 · 1 comment

Comments

@TiuBen
Copy link

TiuBen commented Aug 25, 2023

I use Postman to mock the post form-data
My filename with Chinese words in the node.js console.log (file,originalname) is right
but
in my React I use
formData.append("img", Image[0], Image[0].name);
the nodejs console.log (file,originalname) is wrong

@Doc999tor
Copy link

The last stable version force latin1 encoding of all the headers including filename
I created a PR that fixes the encoding by extending Multer API with unicode (or anything else) encoding
#1210

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants