richardgirges / express-fileupload

Simple express file upload middleware that wraps around busboy
MIT License
1.52k stars 259 forks source link

in version 1.4.0 file names are corrupted #334

Closed vzhuk0fibery closed 1 year ago

vzhuk0fibery commented 1 year ago

steps to reproduce

ghost commented 1 year ago

Is not a problem from fileupload itself, the error come from a node_module package busboy. To solve it add the param defParamCharset: 'utf-8' in the fileUpload creation options like

fileUpload({
    useTempFiles: true,
    tempFileDir: path.resolve(tempFolder),
    defParamCharset: 'utf-8'
})
vzhuk0fibery commented 1 year ago

I see, so I've to specify charset then. Will try to adopt it. Thanks @RaulAlcaraz