nylas
    Preparing search index...

    Interface CreateAttachmentRequest

    Interface of a create attachment request.

    interface CreateAttachmentRequest {
        content: string | Buffer<ArrayBufferLike> | ReadableStream;
        contentDisposition?: string;
        contentId?: string;
        contentType: string;
        filename: string;
        isInline?: boolean;
        size?: number;
    }

    Hierarchy

    • BaseAttachment
      • CreateAttachmentRequest
    Index

    Properties

    content: string | Buffer<ArrayBufferLike> | ReadableStream

    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.