mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 10:22:34 +00:00
Configurable max attachment size
This commit is contained in:
1 parent
ee98101e4c
commit
f9edbab0c6
1 file changed
+1
-1
@@ -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
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user