fix: nip96 upload

This commit is contained in:
Kieran 2024-12-18 09:50:15 +00:00
parent 3e25743cdc
commit 9e59a2d693
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -37,7 +37,7 @@ export class Nip96Uploader {
const fd = new FormData();
fd.append("size", file.size.toString());
fd.append("caption", filename);
fd.append("media_type", file.type);
fd.append("content_type", file.type);
fd.append("file", file);
const rsp = await this.#req("", "POST", fd);