Fix: useTempFiles=true, upload use tmp instead of ram

This commit is contained in:
Coda 2023-06-04 15:56:41 -07:00 committed by GitHub
parent c1bcfe8304
commit 2fd3238576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,8 @@ class Server {
router.use(this.auth.cors)
router.use(fileUpload({
defCharset: 'utf8',
defParamCharset: 'utf8'
defParamCharset: 'utf8',
useTempFiles: true,
}))
router.use(express.urlencoded({ extended: true, limit: "5mb" }));
router.use(express.json({ limit: "5mb" }))