mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
/upload is on /media/r0, not /client/r0
This commit is contained in:
parent
366f3c0bba
commit
91f15074be
@ -222,7 +222,7 @@ export class HomeServerApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uploadAttachment(blob, filename, options = null) {
|
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 New Issue
Block a user