enabling multipart/form-data again

This commit is contained in:
Simon Martín 2018-05-04 15:11:45 +02:00
parent db3984021c
commit 0346cf11d8

View File

@ -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();