Skip to content

PrepareUploadResponse

@blobs/sdk v0.1.0


@blobs/sdk / services / PrepareUploadResponse

Defined in: services/MediaService.ts:59

Response from the PrepareUpload endpoint, containing the signed URL and (when applicable) chunked-upload metadata for large files.

Properties

media

media: Media

Defined in: services/MediaService.ts:61

Media record reserved for the upload.


upload_url

upload_url: string

Defined in: services/MediaService.ts:63

Signed URL the client should PUT the file body to (single-shot uploads).


method

method: string

Defined in: services/MediaService.ts:65

HTTP method the client should use for the upload (typically PUT).


expires_in?

optional expires_in?: number

Defined in: services/MediaService.ts:67

Optional TTL in seconds for upload_url.


chunked?

optional chunked?: boolean

Defined in: services/MediaService.ts:69

True when chunked upload is required (file size exceeds the single-shot threshold).


chunk_size?

optional chunk_size?: number

Defined in: services/MediaService.ts:71

Size in bytes of each chunk when chunked upload is used.


total_chunks?

optional total_chunks?: number

Defined in: services/MediaService.ts:73

Total number of chunks the client must upload.


chunk_upload_url?

optional chunk_upload_url?: string

Defined in: services/MediaService.ts:75

Base URL for chunked uploads — chunks are PUT to ${chunk_upload_url}/${chunkIndex}.