File uploads: try form.getBuffer()

This commit is contained in:
Rory& committed 2025-12-01 21:05:12 +01:00
1 parent 25f7c0de5d
commit 4568165b82
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ export async function uploadFile(
...form.getHeaders(),
},
method: "POST",
body: form,
body: form.getBuffer(),
},
);
const result = (await response.json()) as Attachment;