Skip to content

images stoped working because of new access_token required (and endpoint changes)

New images uploaded with mwc stopped working because a change in the spec requires to have the user access token to query them.

The issue is :

Clients SHOULD NOT generate or use URLs which supply the access token in the query string. These URLs may be copied by users verbatim and provided in a chat message to another user, disclosing the sender’s access token.

So it requires having a service worker making the requests, or intercepting them to add the access token to the headers (and not to the query param).

https://spec.matrix.org/v1.13/client-server-api/#get_matrixclientv1mediathumbnailservernamemediaid

Also https://spec.matrix.org/v1.13/client-server-api/#get_matrixmediav3downloadservernamemediaid is deprecated in favor of https://spec.matrix.org/v1.13/client-server-api/#get_matrixclientv1mediadownloadservernamemediaid

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information