richardgirges/express-fileupload

problem with uploading a file with persian names

faandogh opened this issue · 1 comments

I am trying to upload a file with Persian name and store it in a folder and show it in a table in my software.
it is a simple software that I write it in python and with flask library.
after that I field the boxes that are essential for uploading the file, and pressing the upload button , when I click on the file link in table it open the download page and I can not view the uploaded file and it does not store the file in the specified folder.
for example I am trying to upload :
نمونه.jpg
in the table I see just jpg and and when I click on it does not show the file.
but I can correctly files with English name.
how can I solve this problem?

Hey try this

import fileupload from 'express-fileupload';

app.use(
  fileupload({
    defParamCharset: 'utf8',
  }),
);