Type Alias WritableFileAdapterContent

WritableFileAdapterContent: WritableFileAdapterCommonSettings & {
    data: Uint8Array;
    fileSizeInBytes: number;
}

Configuration for writing file content as a complete byte array. Extends common HTTP headers with complete file data and size.

Used when entire file content is available in memory (smaller files). All content is provided upfront before write operation.

IMPORT_PATH: "@daiso-tech/core/file-storage/contracts"

Type declaration

  • data: Uint8Array

    Complete file content as a byte array. Must be loaded entirely in memory before writing. For large files, use WritableFileAdapterStream instead.

  • fileSizeInBytes: number

    Size of the complete file in bytes. Must match the actual length of the data array. Used for validation, quota checks, and storage pre-allocation.