mirror of
https://github.com/element-hq/synapse.git
synced 2026-07-28 20:49:56 +00:00
deploy: 35c9cbb09d
This commit is contained in:
@@ -188,6 +188,33 @@ However, it only shows media from unencrypted events or rooms.</p>
|
||||
the use of the
|
||||
<a href="user_admin_api.html#list-media-uploaded-by-a-user">List media uploaded by a user</a>
|
||||
Admin API.</p>
|
||||
<h2 id="query-a-piece-of-media-by-id"><a class="header" href="#query-a-piece-of-media-by-id">Query a piece of media by ID</a></h2>
|
||||
<p>This API returns information about a piece of local or cached remote media given the origin server name and media id. If
|
||||
information is requested for remote media which is not cached the endpoint will return 404. </p>
|
||||
<p>Request:</p>
|
||||
<pre><code class="language-http">GET /_synapse/admin/v1/media/<origin>/<media_id>
|
||||
</code></pre>
|
||||
<p>The API returns a JSON body with media info like the following:</p>
|
||||
<p>Response:</p>
|
||||
<pre><code class="language-json">{
|
||||
"media_info": {
|
||||
"media_origin": "remote.com",
|
||||
"user_id": null,
|
||||
"media_id": "sdginwegWEG",
|
||||
"media_type": "img/png",
|
||||
"media_length": 67,
|
||||
"upload_name": "test.png",
|
||||
"created_ts": 300,
|
||||
"filesystem_id": "wgeweg",
|
||||
"url_cache": null,
|
||||
"last_access_ts": 400,
|
||||
"quarantined_by": null,
|
||||
"authenticated": false,
|
||||
"safe_from_quarantine": null,
|
||||
"sha256": "ebf4f635a17d10d6eb46ba680b70142419aa3220f228001a036d311a22ee9d2a"
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
<h1 id="quarantine-media"><a class="header" href="#quarantine-media">Quarantine media</a></h1>
|
||||
<p>Quarantining media means that it is marked as inaccessible by users. It applies
|
||||
to any local media, and any locally-cached copies of remote media.</p>
|
||||
|
||||
Reference in New Issue
Block a user