Merge pull request #1819 from mayli/usetemp

Fix: useTempFiles=true, upload use tmp instead of ram
This commit is contained in:
advplyr 2023-06-06 15:41:28 -05:00 committed by GitHub
commit 9547824aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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