diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-08-22 19:34:57 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-08-22 19:34:57 +1000 |
commit | 9acfe9b32a86eca5f3e6dfc0839fc086a8d78603 (patch) | |
tree | de3b0b1ac3d9deefe5515c150c57fd69ca526e5b /api | |
parent | LazyRequest on mobile + socket not closed fixes (diff) | |
download | server-9acfe9b32a86eca5f3e6dfc0839fc086a8d78603.tar.xz |
Configurable max attachment size
Diffstat (limited to 'api')
-rw-r--r-- | api/src/routes/channels/#channel_id/messages/index.ts | 2 |
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 }, |