Skip to content

Interface: ChannelMediaFileData ​

Metadata of a media file stored in the channel's library, as returned by k.medias.get, k.medias.all and k.medias.upload.

Extended by ​

Properties ​

extension ​

ts
extension: string;

File extension (e.g. mp3, mp4, png).


name ​

ts
name: string;

Media name (the identifier used to look it up).


path ​

ts
path: string;

Storage path of the file.


size ​

ts
size: number;

File size, in bytes.


token ​

ts
token: string;

Token used to build the media's playback URL.


type ​

ts
type: "sounds" | "videos" | "images";

Media category.