Skip to content
Tracon

TraconAttachmentOptions

Namespace Tracon · Assembly Tracon.Core.dll

Defines attachment upload limits for size and media-type allow lists.

public sealed class TraconAttachmentOptions
Inheritance
object ← TraconAttachmentOptions
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Binary content lives in attachments and messages carry only a reference. These options apply only during upload. Type validation reads the content’s leading bytes (its file signature), not the client-supplied Content-Type.

public TraconAttachmentOptions()

Gets allowed MIME types. A subtype wildcard such as "audio/*" is accepted. Executable content types are deliberately excluded.

public ISet<string> AllowedMediaTypes { get; }

ISet<string>

Gets or sets the largest byte count for one attachment. Defaults to 20 MB.

public long MaxBytes { get; set; }

long