Media

Upload some content to the content repository.

post/_matrix/media/v3/upload

Request

Query parameters

filenamestring

The name of the file being uploaded

Headers

Content-Typestring

Optional. The content type of the file being uploaded.

Clients SHOULD always supply this header.

Defaults to application/octet-stream if it is not set.

Request body application/octet-stream

string required

The content to be uploaded.

Example request

"<bytes>"

Response

The mxc:// URI for the uploaded content.

content_uristring mx-mxc-uri required

The mxc:// URI to the uploaded content.

Changes

No recorded changes to this operation across all 1 revision of this API.