mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-28 04:05:27 +00:00
Configurable max attachment size
This commit is contained in:
@@ -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