We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a0764 commit eeeaa98Copy full SHA for eeeaa98
appengine/storage/app.js
@@ -18,6 +18,7 @@
18
19
const format = require('util').format;
20
const express = require('express');
21
+const Multer = require('multer');
22
23
// By default, the client will authenticate using the service account file
24
// specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use
@@ -35,8 +36,8 @@ app.set('view engine', 'pug');
35
36
// [START config]
37
// Multer is required to process file uploads and make them available via
38
// req.files.
-const multer = require('multer')({
39
- inMemory: true,
+const multer = Multer({
40
+ storage: Multer.memoryStorage(),
41
fileSize: 5 * 1024 * 1024 // no larger than 5mb, you can change as needed.
42
});
43
0 commit comments