mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 10:42:34 +00:00
File uploads: try form.getBuffer()
This commit is contained in:
1 parent
25f7c0de5d
commit
4568165b82
1 file changed
+1
-1
@@ -42,7 +42,7 @@ export async function uploadFile(
|
||||
...form.getHeaders(),
|
||||
},
|
||||
method: "POST",
|
||||
body: form,
|
||||
body: form.getBuffer(),
|
||||
},
|
||||
);
|
||||
const result = (await response.json()) as Attachment;
|
||||
|
||||
Reference in new issue
Block a user