I am receiving following error with mean.io application.
Error: request entity too large
To overcome this issue, I have increased the bodyParser limit with in meanio module at following location.
node_modules/meanio/lib/core_modules/server/ExpressEngine.js
// Request body parsing middleware should be above methodOverride
this.app.use(expressValidator());
this.app.use(bodyParser.json({limit: '50mb'}));
this.app.use(bodyParser.urlencoded({
limit: '50mb',
extended: true
}));
this.app.use(methodOverride());
However this is a bad practice and the changes will be lost if we upgrade the module. Can anyone suggest any alternative way to increase request limit at meanio app?