diff --git a/src/matrix/net/HomeServerApi.js b/src/matrix/net/HomeServerApi.js index 1f2acab4..bdf35363 100644 --- a/src/matrix/net/HomeServerApi.js +++ b/src/matrix/net/HomeServerApi.js @@ -222,7 +222,7 @@ export class HomeServerApi { } uploadAttachment(blob, filename, options = null) { - return this._post("/upload", {filename}, blob, options); + return this._authedRequest("POST", `${this._homeserver}/_matrix/media/r0/upload`, {filename}, blob, options); } }