Skip to content

UploadInput

UploadInput = Omit<UploadRequest, "size" | "name" | "mime_type"> & object

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

What upload() sends to POST P/uploads: size comes from the source when it is known.

optional size?: number

Required for a Readable; otherwise derived and checked against the source.

optional name?: string

Defaults to the file name of a { path } source.

optional mime_type?: string

Defaults to a Blob’s type.