Interface FileContent

Content format of media events with msgtype m.file

interface FileContent {
    body: string;
    file?: EncryptedFile;
    filename?: string;
    info?: FileInfo;
    msgtype: File;
    org.matrix.msc3089.leaf?: {};
    url?: string;
}

Hierarchy (view full)

Properties

body: string

A human-readable description of the file. This is recommended to be the filename of the original upload.

Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.

filename?: string

The original filename of the uploaded file.

info?: FileInfo

Information about the file referred to in url.

msgtype: File

One of: [m.file].

org.matrix.msc3089.leaf?: {}

Type declaration

    url?: string

    Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.

    Generated using TypeDoc