Interface AttachmentsOptions

Options when preparing for the upload/download of an attachment.

interface AttachmentsOptions {
    filename?: string;
    prefix?: string;
    secToExp?: number;
}

Hierarchy (view full)

Properties

filename?: string

The suggested name for the file once it's downloaded/saved. Note: the string is cleaned to ensure maximum compatibility with every OS.

prefix?: string

The attachment ID prefix, if different from the internal attribute prefix.

secToExp?: number

Seconds to URL expiration; default: 180 for GET, 300 for PUT.