Skip to content

AgentPrismAttachmentOptions

Namespace AgentPrism · Assembly AgentPrism.Core.dll

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

public sealed class AgentPrismAttachmentOptions

objectAgentPrismAttachmentOptions

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 uses magic bytes, not the client-supplied Content-Type; see AttachmentTypeGuard.

public AgentPrismAttachmentOptions()

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