Storage Objects

Download a file or get upload session status

Changed on

Download a file, or get the status of a resumable upload session.

File Download (default): Downloads the file at the specified path.

Session Status (with X-Upload-Session header): Returns the status of a resumable upload session, including which parts have been uploaded. Anonymous sessions must reuse the exact anon key that created the session.

get/storage/{bucketName}/{path}

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

bucketName, string required

Storage bucket name

path, string required

Object path within bucket

Headers

Range, string

HTTP Range header for partial downloads. Format: bytes=start-end or bytes=start- Examples: bytes=0-1023, bytes=1000-

X-Upload-Session, string

Upload session ID (to get session status instead of downloading)

Response

File content or session status

UploadSessionStatusResponse required

Status of an upload session

session_id, string

Upload session ID

status, 'pending' | 'uploading' | 'completing' | 'completed' | 'aborted'

Current status of the upload

path, string

Target file path

content_type, string

MIME type

total_size, integer

Total file size in bytes

part_size, integer

Size of each part (except last)

total_parts, integer

Total number of parts

parts_uploaded, integer

Number of parts uploaded

bytes_uploaded, integer

Total bytes uploaded so far

parts, UploadSessionPart[]

List of uploaded parts (for resume)

expires_at, string date-time

Session expiry time

created_at, string date-time

Session creation time

Changes

    • info

      added the non-success response with the status

    • breaking

      added the new path request parameter bucketName

    • breaking

      the response's body type changed from no type to object for status

    15 more changes in this revision