nodejs Error request entity too large解决方案 form提交编辑内容过大时

2020-07-08 01:09 2023-12-04 14:20 标签:nodejs,body-parser

var bodyParser = require('body-parser'); app.use(bodyParser.json({limit: '2mb'})); app.use(bodyParser.urlencoded({limit: '2mb', extended: true}));

2mb可根据需求更改

压缩解压