Type Alias WritableFileAdapterCommonSettings

WritableFileAdapterCommonSettings: {
    cacheControl: string | null;
    contentDisposition: string | null;
    contentEncoding: string | null;
    contentLanguage: string | null;
    contentType: string;
}

Common HTTP headers configuration for writable file operations. These settings control caching, compression, and client-side behavior for files.

Shared between content (bytes) and stream write operations.

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

Type declaration

  • cacheControl: string | null

    Cache-Control header directing browser and CDN caching behavior. Controls how long files can be cached and whether revalidation is needed. Null means storage backend applies default caching policy.

  • contentDisposition: string | null

    Content-Disposition header controlling how the file is displayed/downloaded. "attachment" forces browser download, "inline" displays in browser. Used to suggest filename when downloaded.

  • contentEncoding: string | null

    Content-Encoding header specifying compression or transformation applied to the content. Informs clients what decoding is needed before using the file. Must match the actual encoding of the stored file.

  • contentLanguage: string | null

    Content-Language header specifying the natural language of the content. Used by browsers for language-specific handling and for accessibility. Null means language is unspecified or should not be sent.

  • contentType: string

    MIME type of the file content. Determines how browsers/clients interpret and render the file. Required field that guides content handling on retrieval.