Skip to content

Interface: IUploadLimits ​

Defined in: types/instance.ts:29

upload rules this instance enforces, so clients can validate before uploading

Properties ​

PropertyTypeDescriptionDefined in
attachmentExtensionsstring[]extensions accepted as message attachments, lowercase and without a leading dottypes/instance.ts:31
emoji?IEmojiUploadLimitsAbsent on older instances.types/instance.ts:39
imageExtensionsstring[]extensions accepted for image-only uploads (avatars, icons, banners)types/instance.ts:33
maxAttachmentsPerMessagenumbermaximum media items accepted on a single messagetypes/instance.ts:35
maxFileSizeBytes?numberMaximum bytes per uploaded file; absent on older instances.types/instance.ts:37
soundboard?ISoundboardLimitsAbsent on older instances.types/instance.ts:41

Released under the GNU Affero General Public License v3.0.