PayloadTooLargeError: request entity too large
snippet in javascript

PayloadTooLargeError: request entity too large

user5638

app.use(bodyParser.json({
  limit: '50mb'
}));

app.use(bodyParser.urlencoded({
  limit: '50mb',
  parameterLimit: 100000,
  extended: true 
}));

PayloadTooLargeError: request entity too large using express json middleware

user1258

app.use(express.json({limit: '50mb'}));
app.use(express.urlencoded({limit: '50mb'}));