Configurable max attachment size
This commit is contained in:
parent
ee98101e4c
commit
f9edbab0c6
@ -161,7 +161,7 @@ router.get("/", async (req: Request, res: Response) => {
|
||||
// TODO: config max upload size
|
||||
const messageUpload = multer({
|
||||
limits: {
|
||||
fileSize: 1024 * 1024 * 100,
|
||||
fileSize: Config.get().limits.message.maxAttachmentSize,
|
||||
fields: 10,
|
||||
// files: 1
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user