Expand description
Endpoints and helpers for the media repository.
Modules§
POST /_matrix/media/*/upload
PUT /_matrix/media/*/upload/{serverName}/{mediaId}
POST /_matrix/media/*/create
GET /_matrix/media/*/download/{serverName}/{mediaId}
GET /_matrix/media/*/download/{serverName}/{mediaId}/{fileName}
GET /_matrix/media/*/thumbnail/{serverName}/{mediaId}
GET /_matrix/media/*/config
GET /_matrix/media/*/preview_url
Functions§
- Checks whether a given
Content-Type
is considered “safe” for having aContent-Disposition
ofinline
returned on/download
, as recommended by the spec.