Interface CreateAttachmentRequest

Interface of a create attachment request.

Hierarchy

  • BaseAttachment
    • CreateAttachmentRequest

Properties

content: string | ReadableStream | Buffer

Content of the attachment. It can either be a readable stream, a base64 encoded string, or a buffer. For attachments less than 3MB, the content can be a readable stream, or a base64 encoded string. For attachments greater than 3MB, the content must be either a readable stream or a buffer.

contentDisposition?: string

Content disposition of the attachment.

contentId?: string

Content ID of the attachment.

contentType: string

Attachment's content type.

filename: string

Attachment's name.

isInline?: boolean

If it's an inline attachment.

size?: number

Attachment's size in bytes.

Generated using TypeDoc