forked from mystiq/hydrogen-web
/upload is on /media/r0, not /client/r0
This commit is contained in:
parent
366f3c0bba
commit
91f15074be
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue