diff --git a/src/lib/fetchGuildApi.ts b/src/lib/fetchGuildApi.ts index 112f89b36c..4b70fadc1c 100644 --- a/src/lib/fetchGuildApi.ts +++ b/src/lib/fetchGuildApi.ts @@ -74,7 +74,9 @@ export const fetchGuildApi = async ( if (token) { headers.set("X-Auth-Token", token); } - if (requestInit?.body) { + if (requestInit?.body instanceof FormData) { + headers.set("Content-Type", "multipart/form-data"); + } else if (requestInit?.body) { headers.set("Content-Type", "application/json"); }