summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 19:34:57 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 19:34:57 +1000
commitf9edbab0c6d47ccf1cb1b8aaa4f8e76aa66d7727 (patch)
tree344e6ed0b75ee0706d211c8b472213dbe1f6ca59 /api
parentLazyRequest on mobile + socket not closed fixes (diff)
downloadserver-f9edbab0c6d47ccf1cb1b8aaa4f8e76aa66d7727.tar.xz
Configurable max attachment size
Diffstat (limited to 'api')
-rw-r--r--api/src/routes/channels/#channel_id/messages/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts
index f3c3503f..53b8b437 100644
--- a/api/src/routes/channels/#channel_id/messages/index.ts
+++ b/api/src/routes/channels/#channel_id/messages/index.ts
@@ -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
 	},