fix: method tag for media upload
This commit is contained in:
parent
3ba5e7bc4c
commit
201a3aaa49
@ -41,7 +41,7 @@ export class Blossom {
|
|||||||
);
|
);
|
||||||
const tags = [["x", bytesToString("hex", new Uint8Array(hash))]];
|
const tags = [["x", bytesToString("hex", new Uint8Array(hash))]];
|
||||||
|
|
||||||
const rsp = await this.#req("media", "PUT", "upload", file, tags);
|
const rsp = await this.#req("media", "PUT", "media", file, tags);
|
||||||
if (rsp.ok) {
|
if (rsp.ok) {
|
||||||
return (await rsp.json()) as BlobDescriptor;
|
return (await rsp.json()) as BlobDescriptor;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user