From 5db186a65dcd79211bfee784a4c212c87607fdd2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 17 May 2017 12:31:57 +0200 Subject: raise okadminview bodyparser size limit --- app/node_modules/okadminview/index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/node_modules/okadminview/index.js b/app/node_modules/okadminview/index.js index 1fc4116..d687bbb 100644 --- a/app/node_modules/okadminview/index.js +++ b/app/node_modules/okadminview/index.js @@ -119,7 +119,7 @@ function OKAdminView(options) { // Enable flash messaging router.use(flash()); // Parse form data - router.use(bodyParser.urlencoded({extended: true})); + router.use(bodyParser.urlencoded({extended: true, limit: '10mb'})); // HTML forms only support POST and GET methods // We extend this by adding hidden input fields to the forms which // specify the actual method desired. diff --git a/package.json b/package.json index ff5e600..6a429f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "okcms", - "version": "0.2.5", + "version": "0.2.7", "description": "The dopest CMS on the planet.", "main": "app/index.js", "scripts": { -- cgit v1.2.3-70-g09d2