Skip to content

FilePreviewOptions

@blobs/sdk v0.1.0


@blobs/sdk / models/FilePreview / FilePreviewOptions

Defined in: models/FilePreview.ts:50

Constructor options for FilePreview.

Properties

file

file: File

Defined in: models/FilePreview.ts:52

The underlying browser File.


preview?

optional preview?: string | ArrayBuffer | null

Defined in: models/FilePreview.ts:54

Optional pre-generated preview (data URL, blob URL, or buffer).


subjectType?

optional subjectType?: string

Defined in: models/FilePreview.ts:56

Optional subject type the upload is associated with (e.g. 'blob').


subjectId?

optional subjectId?: string

Defined in: models/FilePreview.ts:58

Optional subject id (e.g. blob id) the upload is associated with.


metadata?

optional metadata?: Record<string, any>

Defined in: models/FilePreview.ts:60

Optional metadata bag carried alongside the upload.