payloadtoolargeerror node js code example
Example 1: PayloadTooLargeError: request entity too large using express json middleware
app.use(express.json({limit: '50mb'}));
app.use(express.urlencoded({limit: '50mb'}));
Example 2: PayloadTooLargeError
app.use(myParser.json({limit: '200mb'}));
app.use(myParser.urlencoded({limit: '200mb', extended: true}));