set body parser limit to 2mb

This commit is contained in:
Henry Oswald 2015-07-08 14:34:59 +01:00
parent 39df8964cf
commit 9028bcf830

View file

@ -57,8 +57,8 @@ Modules.loadViewIncludes app
app.use bodyParser.urlencoded({ extended: true })
app.use bodyParser.json()
app.use bodyParser.urlencoded({ extended: true, limit: "2mb"})
app.use bodyParser.json({limit: "2mb"})
app.use multer(dest: Settings.path.uploadFolder)
app.use methodOverride()