很简单的一段代码,想要设置raw的entity大小,因为上传图片导致node request entity too large
修改:
app.use(bodyParser.json({limit: "50mb"}));
app.use(bodyParser.raw({limit: "50mb"}));//这里出错了,bodyParser.raw is not a function?
app.use(bodyParser.urlencoded({limit: "50mb", extended: true, parameterLimit:50000}));