From b87e40ce096ede424bfd5cce8131f92009249acd Mon Sep 17 00:00:00 2001 From: filesite Date: Thu, 16 May 2024 09:28:36 +0800 Subject: [PATCH] change max post data size to 10mb --- index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.mjs b/index.mjs index 0ec501c..5a13f1d 100644 --- a/index.mjs +++ b/index.mjs @@ -16,9 +16,9 @@ app.disable('x-powered-by'); app.use(express.static('public')); // parse application/x-www-form-urlencoded -app.use(bodyParser.urlencoded({ limit: '2mb', extended: false })) +app.use(bodyParser.urlencoded({ limit: '10mb', extended: false })) // parse application/json -app.use(bodyParser.json({ limit: '2mb' })) +app.use(bodyParser.json({ limit: '10mb' })) app.use('/api', apiRouter);