Skip to content

Commit

Permalink
Merge pull request #1493 from turt2live/travis/s2s/media
Browse files Browse the repository at this point in the history
Mention how the content repository works over federation
  • Loading branch information
turt2live authored Aug 8, 2018
2 parents a77975b + cdcd72c commit c8a8fdf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion specification/server_server_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,20 @@ the following EDU::
for the user


Content Repository
------------------

Attachments to events (images, files, etc) are uploaded to a homeserver via the
Content Repository described in the `Client-Server API`_. When a server wishes
to serve content originating from a remote server, it needs to ask the remote
server for the media.

Servers should use the server described in the Matrix Content URI, which has the
format ``mxc://{ServerName}/{MediaID}``. Servers should use the download endpoint
described in the `Client-Server API`_, being sure to use the ``allow_remote``
parameter (set to ``false``).


Signing Events
--------------

Expand Down Expand Up @@ -1082,7 +1096,7 @@ that are too long.

.. _`Invitation storage`: ../identity_service/unstable.html#invitation-storage
.. _`Identity Service API`: ../identity_service/unstable.html
.. _`Client-Server API`: ../client_server/unstable.html#m-room-member
.. _`Client-Server API`: ../client_server/unstable.html
.. _`Inviting to a room`: #inviting-to-a-room
.. _`Canonical JSON`: ../appendices.html#canonical-json
.. _`Unpadded Base64`: ../appendices.html#unpadded-base64

0 comments on commit c8a8fdf

Please sign in to comment.