Skip to content

Preview

Defined in: libs/ccs-files-client/src/types.ts:646

kind: PreviewKind

Defined in: libs/ccs-files-client/src/types.ts:648

none with url: null when nothing can be shown (yet).


url: string | null

Defined in: libs/ccs-files-client/src/types.ts:653

The URL to show: an image’s preview rendition when ready, else the original; for a video the mp4_720p rendition when ready, then mp4_1080p, then the original; a PDF’s original.


expires_at: string | null

Defined in: libs/ccs-files-client/src/types.ts:654


mime_type: string | null

Defined in: libs/ccs-files-client/src/types.ts:655


renditions: Record<string, { status: RenditionStatus; url?: string; width?: number | null; height?: number | null; }>

Defined in: libs/ccs-files-client/src/types.ts:657

Every rendition of the version, with a signed URL when it is ready.


optional text?: object

Defined in: libs/ccs-files-client/src/types.ts:667

Text files: the same URL served as UTF-8 text, and whether the file is larger than the 1 MiB preview cap.

url: string

truncated: boolean


editable: boolean

Defined in: libs/ccs-files-client/src/types.ts:668