fix: 🐛 fix upload
This commit is contained in:
parent
492fa68d21
commit
9238ce561b
|
@ -30,7 +30,6 @@ export default translator({
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${apiKey}`,
|
Authorization: `Bearer ${apiKey}`,
|
||||||
"Content-Type": "multipart/form-data",
|
|
||||||
},
|
},
|
||||||
body: fd,
|
body: fd,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
@ -38,7 +37,7 @@ export default translator({
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!newFileRequest.ok)
|
if (!newFileRequest.ok)
|
||||||
console.error(
|
throw new Error(
|
||||||
`misskey: creating new file, got ${newFileRequest.status}`
|
`misskey: creating new file, got ${newFileRequest.status}`
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue