Skip to content

UploadTicket

Defined in: libs/ccs-files-user-client/src/core/types.ts:453

The service’s UploadTicket, as POST P/uploads (or your backend) hands it out.

upload_id: string

Defined in: libs/ccs-files-user-client/src/core/types.ts:454


file_id: string

Defined in: libs/ccs-files-user-client/src/core/types.ts:455


version_no: number

Defined in: libs/ccs-files-user-client/src/core/types.ts:456


status: UploadTicketStatus

Defined in: libs/ccs-files-user-client/src/core/types.ts:457


policy_applied: string

Defined in: libs/ccs-files-user-client/src/core/types.ts:458


method: "put" | "multipart"

Defined in: libs/ccs-files-user-client/src/core/types.ts:459


optional url?: string | null

Defined in: libs/ccs-files-user-client/src/core/types.ts:461

put only (null on the wire otherwise; optional so a ticket typed by the Node SDK is accepted as is).


headers: Record<string, string>

Defined in: libs/ccs-files-user-client/src/core/types.ts:463

Always contains Content-Type. A single PUT sends exactly these headers and nothing else.


optional part_size?: number | null

Defined in: libs/ccs-files-user-client/src/core/types.ts:465

multipart only.


optional parts_total?: number | null

Defined in: libs/ccs-files-user-client/src/core/types.ts:466


optional parts?: UploadPartUrl[] | null

Defined in: libs/ccs-files-user-client/src/core/types.ts:468

multipart only: the first 100 part URLs.


expires_at: string

Defined in: libs/ccs-files-user-client/src/core/types.ts:469


optional parts_uploaded?: object[]

Defined in: libs/ccs-files-user-client/src/core/types.ts:471

On GET P/uploads/:upload_id: the parts the store already has.

part_number: number

etag: string

size: number