Merge pull request #1816 from mayli/utf8-filename

Fix: decode filename as utf8 on upload
This commit is contained in:
advplyr 2023-06-04 08:39:38 -05:00 committed by GitHub
commit c1bcfe8304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,10 @@ class Server {
this.server = http.createServer(app) this.server = http.createServer(app)
router.use(this.auth.cors) router.use(this.auth.cors)
router.use(fileUpload()) router.use(fileUpload({
defCharset: 'utf8',
defParamCharset: 'utf8'
}))
router.use(express.urlencoded({ extended: true, limit: "5mb" })); router.use(express.urlencoded({ extended: true, limit: "5mb" }));
router.use(express.json({ limit: "5mb" })) router.use(express.json({ limit: "5mb" }))