Skip to content

Commit

Permalink
Fix multer options (#256)
Browse files Browse the repository at this point in the history
* Fix multer options

There is no "inMemory" options.

* Update app.js
  • Loading branch information
Kacper Polak authored and jmdobry committed Nov 16, 2016
1 parent 73a0764 commit eeeaa98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appengine/storage/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

const format = require('util').format;
const express = require('express');
const Multer = require('multer');

// By default, the client will authenticate using the service account file
// specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use
Expand All @@ -35,8 +36,8 @@ app.set('view engine', 'pug');
// [START config]
// Multer is required to process file uploads and make them available via
// req.files.
const multer = require('multer')({
inMemory: true,
const multer = Multer({
storage: Multer.memoryStorage(),
fileSize: 5 * 1024 * 1024 // no larger than 5mb, you can change as needed.
});

Expand Down

0 comments on commit eeeaa98

Please sign in to comment.