fix: 🐛 fix upload
This commit is contained in:
parent
492fa68d21
commit
9238ce561b
|
@ -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}`
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue