Fix: decode filename as utf8 on upload

This commit is contained in:
Coda 2023-06-03 21:44:13 -07:00 committed by GitHub
parent 8243da69f6
commit a3642b204d
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)
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.json({ limit: "5mb" }))