.NET API
TraconAttachmentOptions
Namespace Tracon · Assembly
Tracon.Core.dllDefines 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()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”TraconAttachmentOptions()
Section titled “ TraconAttachmentOptions()”public TraconAttachmentOptions()Properties
Section titled “Properties”AllowedMediaTypes
Section titled “ AllowedMediaTypes”Gets allowed MIME types. A subtype wildcard such as "audio/*" is
accepted. Executable content types are deliberately excluded.
public ISet<string> AllowedMediaTypes { get; }Property Value
Section titled “Property Value”MaxBytes
Section titled “ MaxBytes”Gets or sets the largest byte count for one attachment. Defaults to 20 MB.
public long MaxBytes { get; set; }