curl -sS 'https://matrix.example.com/_matrix/media/v3/download/example.com/abcde12345' -o photo.jpg

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_matrix/media/v3/download/example.com/abcde12345' -o photo.jpg

Download media from its mxc URI

Fetches the file identified by the server name and media ID from an mxc:// URI, saving it to photo.jpg. Split mxc://example.com/abcde12345 at the slash to get the path parts. Downloads generally need no authentication. Quarantined media returns 404 here until unquarantined.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.