node.js - mean.io - Error: 'Request entity too large'. How to increase bodyParser limit outside meanio module? -
i receiving following error mean.io application.
error: request entity large
to overcome issue, have increased bodyparser limit in meanio module @ following location.
node_modules/meanio/lib/core_modules/server/expressengine.js
// request body parsing middleware should 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 bad practice , changes lost if upgrade module. can suggest alternative way increase request limit @ meanio app?
i got working issue npm meanio module in latest version have updated code. need update npm meanio package.after can able overide methods present in expressengine.js file.
there issue opened on github https://github.com/linnovate/mean/issues/1169
after have fixed issue , merged code
Comments
Post a Comment