From 2fd32385769a0f3dea8fc1a7abbbf74360813ef9 Mon Sep 17 00:00:00 2001 From: Coda <822628+mayli@users.noreply.github.com> Date: Sun, 4 Jun 2023 15:56:41 -0700 Subject: [PATCH] Fix: useTempFiles=true, upload use tmp instead of ram --- server/Server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/Server.js b/server/Server.js index 5c6278cb..009c6556 100644 --- a/server/Server.js +++ b/server/Server.js @@ -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" }))