Skip to main content

ChannelFile

ChannelFile = object

Represents a file stored within a channel directory. Files contain metadata about uploaded content and link to assets in the asset system.

Properties​

assetId​

assetId: AssetGuid

The unique identifier of the asset containing the file content. Use this to construct the asset URI for downloading or displaying the file.


channelId​

channelId: ChannelGuid

The ID of the channel containing this file.


directoryId​

directoryId: DirectoryGuid

The ID of the directory containing this file.


id​

id: FileGuid

The unique identifier for the file.


length​

length: bigint

The file size in bytes.


mimeType​

mimeType: string

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


modifiedAt?​

optional modifiedAt?: Date

The timestamp when the file was last modified. Optional.


name​

name: string

The display name of the file including extension.


sha256​

sha256: Uint8Array

The SHA-256 hash of the file content as a byte array.