From 2a1f7741feb82064d1ab6fc5ee681a01c85cef4d Mon Sep 17 00:00:00 2001 From: Kacper Polak Date: Fri, 18 Nov 2016 09:27:04 +0100 Subject: [PATCH] (fix) Multer options There is no `fileSize` option for multer. (https://github.com/expressjs/multer#multeropts) `fileSize` option is member of `limits`. (https://github.com/expressjs/multer#limits) --- appengine/storage/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appengine/storage/app.js b/appengine/storage/app.js index f0dc1c0c5b..519de91468 100644 --- a/appengine/storage/app.js +++ b/appengine/storage/app.js @@ -38,7 +38,9 @@ app.set('view engine', 'pug'); // req.files. const multer = Multer({ storage: Multer.memoryStorage(), - fileSize: 5 * 1024 * 1024 // no larger than 5mb, you can change as needed. + limits: { + fileSize: 5 * 1024 * 1024 // no larger than 5mb, you can change as needed. + } }); // A bucket is a container for objects (files).