From 30a163505dceff0ed017ae3ec3ce383f3ae7a111 Mon Sep 17 00:00:00 2001 From: liudongqi Date: Wed, 4 Sep 2024 18:56:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=20nodejs=20request=20enti?= =?UTF-8?q?ty=20too=20large?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 1d0bda2..cd7e216 100644 --- a/app.js +++ b/app.js @@ -16,7 +16,7 @@ const app = express(); /* 配置框架环境 S */ // 设置 express 的中间件 body-parser -app.use(bodyParser.json('10mb')); +app.use(bodyParser.json('100mb')); app.use(bodyParser.urlencoded({extended: true})); // 设置 public 为静态文件的存放文件夹