From 0346cf11d8c6eabc1a91c2c27340a55ae1cd81e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Fri, 4 May 2018 15:11:45 +0200 Subject: [PATCH] enabling multipart/form-data again --- app/middlewares/body-parser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/middlewares/body-parser.js b/app/middlewares/body-parser.js index 7bfb8bf9..6c44e295 100644 --- a/app/middlewares/body-parser.js +++ b/app/middlewares/body-parser.js @@ -11,7 +11,7 @@ */ var qs = require('qs'); -//var multer = require('multer'); +var multer = require('multer'); /** * Extract the mime type from the given request's @@ -141,5 +141,5 @@ exports.parse['application/json'] = function(req, options, fn){ }); }; -// var multipartMiddleware = multer({ limits: { fieldSize: Infinity } }); -// exports.parse['multipart/form-data'] = multipartMiddleware.none(); +var multipartMiddleware = multer({ limits: { fieldSize: Infinity } }); +exports.parse['multipart/form-data'] = multipartMiddleware.none();