fix: method tag for media upload

This commit is contained in:
kieran 2025-01-27 21:22:06 +00:00
parent 3ba5e7bc4c
commit 201a3aaa49
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -41,7 +41,7 @@ export class Blossom {
);
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) {
return (await rsp.json()) as BlobDescriptor;
} else {