Interface IDownloadParams

interface IDownloadParams {
    params?: object;
    sha1?: string;
    size?: number;
    status: "fallback" | "complete" | "chunked";
    url?: string;
    urls?: {
        [range: string]: string;
    };
}

Properties

params?: object

The values for the updatable params that were used in the creation of the returned S3 signed URL (Content-Type, Content-Disposition & Cache-Control).

sha1?: string

The calculated SHA-1 hash of the object, if available.

size?: number

The object size in bytes.

status: "fallback" | "complete" | "chunked"

Indicates status of the object

url?: string

The S3 signed URL to download from. This attribute is returned when the value of the status attribute is complete or fallback (in which case the URL will be an OSS Signed URL instead of an S3 signed URL).

urls?: {
    [range: string]: string;
}

A map of S3 signed URLs where each key correspond to a specific byte range chunk. This attribute is returned when the value of the status attribute is chunked.

Type declaration

  • [range: string]: string

Generated using TypeDoc