问题总结

报错 request entity too large

PayloadTooLargeError: request entity too large

问题原因:

解决的方法:

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

备注: