Sotaro KARASAWA 9 лет назад
Родитель
Сommit
a588be65a7
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/crowi/express-init.js

+ 2 - 2
lib/crowi/express-init.js

@@ -86,8 +86,8 @@ module.exports = function(crowi, app) {
   app.set('view engine', 'html');
   app.set('views', crowi.viewsDir);
   app.use(methodOverride());
-  app.use(bodyParser.urlencoded({ extended: true }));
-  app.use(bodyParser.json());
+  app.use(bodyParser.urlencoded({ extended: true, limit: '50mb' }));
+  app.use(bodyParser.json({limit: '50mb'}));
   app.use(cookieParser());
   app.use(multer());
   app.use(session(crowi.sessionConfig));