How repair PayloadTooLargeError

I found that the solution of this error is pun in somewhere of code this

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

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

but I dont know where put it and where declare variable app.

Can you help me?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.