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
Extends
Section titled “Extends”BaseContent
Properties
Section titled “Properties”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.
Inherited from
Section titled “Inherited from”BaseContent.body
optionalfile?: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
Inherited from
Section titled “Inherited from”BaseContent.file
filename?
Section titled “filename?”
optionalfilename?:string
Defined in: src/@types/media.ts:167
The original filename of the uploaded file.
Inherited from
Section titled “Inherited from”BaseContent.filename
format?
Section titled “format?”
optionalformat?:"org.matrix.custom.html"
Defined in: src/@types/media.ts:171
The format used in the formatted_body.
Inherited from
Section titled “Inherited from”BaseContent.format
formatted_body?
Section titled “formatted_body?”
optionalformatted_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.
Inherited from
Section titled “Inherited from”BaseContent.formatted_body
optionalinfo?:FileInfo
Defined in: src/@types/media.ts:187
Information about the file referred to in url.
msgtype
Section titled “msgtype”msgtype:
File
Defined in: src/@types/media.ts:191
One of: [m.file].
org.matrix.msc3089.leaf?
Section titled “org.matrix.msc3089.leaf?”
optionalorg.matrix.msc3089.leaf?:EmptyObject
Defined in: src/models/MSC3089TreeSpace.ts:83
optionalurl?:string
Defined in: src/@types/media.ts:157
Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.
Inherited from
Section titled “Inherited from”BaseContent.url