Media

Download content from the content repository overriding the file name

NOTE: Replaced by GET /_matrix/client/v1/media/download/{serverName}/{mediaId}/{fileName} (requires authentication).

This will download content from the content repository (same as the previous endpoint) but replace the target file name with the one provided by the caller.

WARNING: [Changed in v1.11] This endpoint MAY return 404 M_NOT_FOUND for media which exists, but is after the server froze unauthenticated media access. See Client Behaviour for more information.

get/_matrix/media/v3/download/{serverName}/{mediaId}/{fileName}

Request

Path parameters

serverNamestring mx-server-name required

The server name from the mxc:// URI (the authority component).

mediaIdstring required

The media ID from the mxc:// URI (the path component).

fileNamestring required

A filename to give in the Content-Disposition header.

Query parameters

allow_remoteboolean

Indicates to the server that it should not attempt to fetch the media if it is deemed remote. This is to prevent routing loops where the server contacts itself.

Defaults to true if not provided.

timeout_msinteger

The maximum number of milliseconds that the client is willing to wait to start receiving data, in the case that the content has not yet been uploaded. The default value is 20000 (20 seconds). The content repository SHOULD impose a maximum value for this parameter. The content repository MAY respond before the timeout.

allow_redirectboolean

Indicates to the server that it may return a 307 or 308 redirect response that points at the relevant media content. When not explicitly set to true the server must return the media content itself.

Response

The content that was previously uploaded.

Changes

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