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}));
备注:
app.use()
上边,不要追加到末尾