From 66833d22b6067d2e8612f877607942a1695e677a Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 10 May 2017 15:07:40 -0400 Subject: [PATCH] fix #351, increase limit for body-parser --- server/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.js b/server/server.js index 07931c0d..79baca8d 100644 --- a/server/server.js +++ b/server/server.js @@ -55,8 +55,8 @@ app.options('*', corsMiddleware); // Body parser, cookie parser, sessions, serve public assets app.use(Express.static(path.resolve(__dirname, '../static'))); -app.use(bodyParser.urlencoded({ extended: true })); -app.use(bodyParser.json()); +app.use(bodyParser.urlencoded({ limit: '50mb', extended: true })); +app.use(bodyParser.json({ limit: '50mb' })); app.use(cookieParser()); app.use(session({ resave: true,