summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-01 21:05:12 +0100
committerRory& <root@rory.gay>2025-12-01 21:05:12 +0100
commit4568165b82f7037724318c60f6a0f7ccbec0d7e9 (patch)
tree073eed29b18205832be3c8b71335d2991c682a45
parentDrop node-fetch-commonjs, proxy-agent as deprecated (diff)
downloadserver-ts-4568165b82f7037724318c60f6a0f7ccbec0d7e9.tar.xz
File uploads: try form.getBuffer()
-rw-r--r--src/util/util/cdn.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util/cdn.ts b/src/util/util/cdn.ts

index 01f03fc1..fe4781b9 100644 --- a/src/util/util/cdn.ts +++ b/src/util/util/cdn.ts
@@ -42,7 +42,7 @@ export async function uploadFile( ...form.getHeaders(), }, method: "POST", - body: form, + body: form.getBuffer(), }, ); const result = (await response.json()) as Attachment;