multer
multer copied to clipboard
Why Postman filename is right, but in the web I use formdata.append() the filename is rong?
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
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
https://github.com/expressjs/multer/pull/1210