Skip to content

@camera.ui/sdk / manager / CreateDownloadOptions

Interface: CreateDownloadOptions ​

Defined in: manager/index.ts:368

Options for creating a download.

Extended by ​

Properties ​

cleanup? ​

optional cleanup?: DownloadCleanup

Defined in: manager/index.ts:382

When the file on disk gets cleaned up. Defaults to 'never' (caller manages lifecycle). Use 'on-expiry' for multi-recipient notification images, 'on-download' for one-shot exports.


filename? ​

optional filename?: string

Defined in: manager/index.ts:372

Filename for Content-Disposition header (defaults to basename of filePath).


filePath ​

filePath: string

Defined in: manager/index.ts:370

Absolute path to the file on disk, inside the plugin's storage folder (api.storagePath).


mimeType? ​

optional mimeType?: string

Defined in: manager/index.ts:374

MIME type for Content-Type header (defaults to application/octet-stream).


ttlMs? ​

optional ttlMs?: number

Defined in: manager/index.ts:376

Time-to-live in milliseconds (defaults to 10 minutes).