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
commit9acfe9b32a86eca5f3e6dfc0839fc086a8d78603 (patch)
treede3b0b1ac3d9deefe5515c150c57fd69ca526e5b /api
parentLazyRequest on mobile + socket not closed fixes (diff)
downloadserver-9acfe9b32a86eca5f3e6dfc0839fc086a8d78603.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
 	},