Skip to content

FileContent

Defined in: src/@types/media.ts:183

Content format of media events with msgtype m.file

https://spec.matrix.org/v1.11/client-server-api/#mfile

  • BaseContent

body: string

Defined in: src/@types/media.ts:163

If filename is not set or the value of both properties are identical, this is the filename of the original upload. Otherwise, this is a caption for the file.

BaseContent.body


optional file?: EncryptedFile

Defined in: src/@types/media.ts:153

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

https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments

BaseContent.file


optional filename?: string

Defined in: src/@types/media.ts:167

The original filename of the uploaded file.

BaseContent.filename


optional format?: "org.matrix.custom.html"

Defined in: src/@types/media.ts:171

The format used in the formatted_body.

BaseContent.format


optional formatted_body?: string

Defined in: src/@types/media.ts:175

The formatted version of the body, when it acts as a caption. This is required if format is specified.

BaseContent.formatted_body


optional info?: FileInfo

Defined in: src/@types/media.ts:187

Information about the file referred to in url.


msgtype: File

Defined in: src/@types/media.ts:191

One of: [m.file].


optional org.matrix.msc3089.leaf?: EmptyObject

Defined in: src/models/MSC3089TreeSpace.ts:83


optional url?: string

Defined in: src/@types/media.ts:157

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

BaseContent.url