Class UploadLimits
Admin-configurable upload limits, bound from the Uploads configuration section.
Sizes are expressed in megabytes in configuration; the *Bytes accessors convert them
for enforcement. Every default mirrors HubConstants so an absent or partial
Uploads section preserves the historical built-in limits.
public sealed class UploadLimits
- Inheritance
-
UploadLimits
- Inherited Members
Constructors
UploadLimits()
public UploadLimits()
Properties
MaxAttachmentsPerMessage
public int MaxAttachmentsPerMessage { get; init; }
Property Value
MaxAudioSizeBytes
public long MaxAudioSizeBytes { get; }
Property Value
MaxAudioSizeMB
public int MaxAudioSizeMB { get; init; }
Property Value
MaxAvatarSizeBytes
public long MaxAvatarSizeBytes { get; }
Property Value
MaxAvatarSizeMB
public int MaxAvatarSizeMB { get; init; }
Property Value
MaxFileSizeBytes
public long MaxFileSizeBytes { get; }
Property Value
MaxFileSizeMB
public int MaxFileSizeMB { get; init; }
Property Value
MaxImageSizeBytes
public long MaxImageSizeBytes { get; }
Property Value
MaxImageSizeMB
public int MaxImageSizeMB { get; init; }
Property Value
MaxRequestBodyBytes
Absolute ceiling for one message request body (largest file × the attachment cap). Used to size the request-body and multipart limits so a configured increase actually takes effect.
public long MaxRequestBodyBytes { get; }
Property Value
Methods
MaxForKind(AttachmentKind)
Maximum accepted size for a single attachment of the given kind.
public long MaxForKind(AttachmentKind kind)
Parameters
kindAttachmentKind