How to increase expressjs bodyParser's POST limit?

Views: 515 Ask New Question


On By

1 Answer


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"}));
On By


Answer This Question