Skip to content

Commit

Permalink
(fix) Multer options (#261)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Kacper Polak authored and jmdobry committed Nov 18, 2016
1 parent 8091e76 commit 073fe3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion appengine/storage/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 073fe3e

Please sign in to comment.