add file upload size limit
This commit is contained in:
commit
19ce3d0dbc
@ -24,7 +24,7 @@ const storage = multer.memoryStorage();
|
||||
rootUrl,
|
||||
middlwares: [
|
||||
cors({ origin: "*" }),
|
||||
multer({ storage: storage }).single("file"),
|
||||
multer({ storage: storage, limits: { fileSize: 32000000 } }).single("file"), //32 MB maximum
|
||||
bodyParser.urlencoded({ extended: true }),
|
||||
bodyParser.json(),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user