You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now request body can have only 100kb but if you want to send more you can't change the acceptable payload size using standard Express method.
asyncfunctionmain(){constapp=createApp(AppController);app.use(bodyParser.json({limit: '50mb'}));app.use(bodyParser.raw({limit: '50mb'}));app.use(bodyParser.urlencoded({limit: '50mb',extended: true}));consthttpServer=http.createServer(app);dotenv.config();constport=Config.get('PORT',process.env.PORT||4000);httpServer.listen(port,()=>{console.log(`Listening on port ${port}...`);});httpServer.timeout=10000000;}
The text was updated successfully, but these errors were encountered:
It's impossible to change a payload data size.
Now request body can have only 100kb but if you want to send more you can't change the acceptable payload size using standard Express method.
The text was updated successfully, but these errors were encountered: