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 | f9edbab0c6d47ccf1cb1b8aaa4f8e76aa66d7727 (patch) | |
tree | 344e6ed0b75ee0706d211c8b472213dbe1f6ca59 | |
parent | LazyRequest on mobile + socket not closed fixes (diff) | |
download | server-f9edbab0c6d47ccf1cb1b8aaa4f8e76aa66d7727.tar.xz |
Configurable max attachment size
-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 }, |