richardgirges / express-fileupload

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

problem with persian file names #319

Closed bagherghara closed 2 years ago

bagherghara commented 2 years ago

I am trying to upload file that have persian name like (رسید خرید), but when I upload it to server the string is not correct, it shows characters like that (ريÙ-Ù).

gjf7 commented 2 years ago

Hi there! Just adding defParamCharset: "utf8" can solve this problem.

app.use(fileupload({
...
defParamCharset: "utf8"
...
}))
richardgirges commented 2 years ago

Closing this issue as it appears there is a solution.