/upload is on /media/r0, not /client/r0

This commit is contained in:
Bruno Windels 2020-11-11 11:50:40 +01:00
parent 366f3c0bba
commit 91f15074be

View File

@ -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);
}
}