Try providing the Content-Type for Axios

This commit is contained in:
Oliver 2025-11-17 21:52:19 -07:00
parent a63f0e02d9
commit 5e0028cdd6

View file

@ -15,7 +15,10 @@ async function uploadFile(releaseID, localPath, remoteName = undefined) {
`${API}/repos/${REPO}/releases/${releaseID}/assets`,
stream,
{
headers: { Authorization: `token ${TOKEN}` },
headers: {
Authorization: `token ${TOKEN}`,
"Content-Type": `multipart/form-data`,
},
params: { name: remoteName },
}
)