Answers for "node.js 413 Request Entity Too Large"

5

413 Request Entity Too Large

#open terminal and type
sudo nano /etc/nginx/nginx.conf
#go to http block
http {
	...
    #add this line
    client_max_body_size 100M;
    ...
}
Posted by: Guest on August-02-2021
0

413 payload too large nodejs

var bodyParser = require('body-parser');
app.use(bodyParser.json({limit: "50mb"}));
app.use(bodyParser.urlencoded({limit: "50mb", extended: true, parameterLimit:50000}));
Posted by: Guest on June-07-2021
0

413 payload too large nodejs

app.use(express.json({limit: '50mb'}));
app.use(express.urlencoded({limit: '50mb'}));
Posted by: Guest on June-07-2021

Code answers related to "node.js 413 Request Entity Too Large"

Browse Popular Code Answers by Language