Skip to main content

get_content_as_filename_legacy_route

Function get_content_as_filename_legacy_route 

Source
pub(crate) async fn get_content_as_filename_legacy_route(
    __arg0: State<State>,
    __arg1: ClientIp,
    body: Args<Request>,
) -> Result<Response>
Expand description

ยงGET /_matrix/media/v3/download/{serverName}/{mediaId}/{fileName}

Load media from our server or over federation, permitting desired filename.

  • Only allows federation if allow_remote is true
  • Only redirects if allow_redirect is true
  • Uses client-provided timeout_ms if available, else defaults to 20 seconds