fix: 🐛 fix upload

This commit is contained in:
May 2024-11-21 20:21:07 -08:00
parent 492fa68d21
commit 9238ce561b
Signed by: split
GPG key ID: C325C61F0BF517C0

View file

@ -30,7 +30,6 @@ export default translator({
{
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "multipart/form-data",
},
body: fd,
method: "POST",
@ -38,7 +37,7 @@ export default translator({
)
if (!newFileRequest.ok)
console.error(
throw new Error(
`misskey: creating new file, got ${newFileRequest.status}`
)