logo image

How to increase expressjs bodyParser's POST limit?


1 Answer

2 years ago by

Following code shows you how to increase the POST limit to 5MB

var express = require('express');
var bodyParser = require('body-parser');
var app = express();

app.use(bodyParser.urlencoded({
  limit: "5mb",
  extended: false
}));
app.use(bodyParser.json({limit: "5mb"}));
2 years ago by Megamind