From 9028bcf830b00e91ec069c3aaafcefa8184b5305 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 8 Jul 2015 14:34:59 +0100 Subject: [PATCH] set body parser limit to 2mb --- services/web/app/coffee/infrastructure/Server.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/infrastructure/Server.coffee b/services/web/app/coffee/infrastructure/Server.coffee index 98cd7992dd..8db396bca5 100644 --- a/services/web/app/coffee/infrastructure/Server.coffee +++ b/services/web/app/coffee/infrastructure/Server.coffee @@ -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()