add file upload size limit
This commit is contained in:
parent
65b6311cf0
commit
a2b5ddf9a8
@ -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