Readonlykey: IKeyThe unique identifier/path for this file in storage.
Retrieves metadata about the file without downloading its content.
File metadata (ETag, content type, size, modification time), or null if not found
Retrieves metadata about the file without downloading its content.
File metadata (ETag, content type, size, modification time)
Retrieves file content as a standard Web Streams API ReadableStream. Suitable for streaming large files without loading entire content into memory.
A readable stream, or null if not found
Retrieves file content as a standard Web Streams API ReadableStream. Suitable for streaming large files without loading entire content into memory.
A readable stream
Generates a signed download URL with optional constraints. The URL will be valid only for the specified TTL and can include content-type/disposition overrides.
Optionaloptions: FileDownloadUrlOptionsDownload URL configuration options (TTL, content-type, content-disposition)
A signed URL, or null if the file is not found
Generates a signed download URL with optional constraints. The URL will be valid only for the specified TTL and can include content-type/disposition overrides.
Optionaloptions: FileDownloadUrlOptionsDownload URL configuration options (TTL, content-type, content-disposition)
A signed URL
Read-only interface for accessing file content and metadata. Provides multiple data format options (text, bytes, streams) and metadata retrieval. All methods follow a pattern of returning null for missing files or throwing errors on OrFail variants.
IMPORT_PATH:
"@daiso-tech/core/file-storage/contracts"