mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-26 18:51:10 +00:00
Attachment limits
This commit is contained in:
@@ -258,7 +258,7 @@ export const messageUpload = multer({
|
||||
limits: {
|
||||
fileSize: Config.get().limits.message.maxAttachmentSize,
|
||||
fields: 10,
|
||||
// files: 1
|
||||
files: Config.get().limits.message.maxAttachments,
|
||||
},
|
||||
storage: multer.memoryStorage(),
|
||||
}); // max upload 50 mb
|
||||
|
||||
@@ -20,6 +20,7 @@ export class MessageLimits {
|
||||
maxCharacters: number = 1048576;
|
||||
maxTTSCharacters: number = 160;
|
||||
maxReactions: number = 2048;
|
||||
maxAttachments: number = 15;
|
||||
maxAttachmentSize: number = 1024 * 1024 * 1024;
|
||||
maxBulkDelete: number = 1000;
|
||||
maxEmbedDownloadSize: number = 1024 * 1024 * 5;
|
||||
|
||||
Reference in New Issue
Block a user