Stratal API Reference
    Preparing search index...

    Interface DownloadResult

    Download Result

    Result of downloading a file from storage. Includes the file stream and metadata.

    interface DownloadResult {
        contentType: string;
        metadata?: Record<string, string>;
        size: number;
        toArrayBuffer(): Promise<Uint8Array<ArrayBufferLike>> | undefined;
        toStream(): ReadableStream<Uint8Array<ArrayBufferLike>> | undefined;
        toString(): Promise<string> | undefined;
    }
    Index

    Properties

    contentType: string

    MIME type of the file (e.g., 'application/pdf', 'image/png')

    metadata?: Record<string, string>

    Custom object metadata (S3-specific) Key-value pairs stored with the object

    size: number

    Size of the file in bytes

    Methods