From 073fe3e9528febcebfe0ac375d5ab20fb1528939 Mon Sep 17 00:00:00 2001 From: Kacper Polak Date: Fri, 18 Nov 2016 16:35:05 +0100 Subject: [PATCH] (fix) Multer options (#261) 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).