Try providing the Content-Type for Axios
This commit is contained in:
parent
a63f0e02d9
commit
5e0028cdd6
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,10 @@ async function uploadFile(releaseID, localPath, remoteName = undefined) {
|
||||||
`${API}/repos/${REPO}/releases/${releaseID}/assets`,
|
`${API}/repos/${REPO}/releases/${releaseID}/assets`,
|
||||||
stream,
|
stream,
|
||||||
{
|
{
|
||||||
headers: { Authorization: `token ${TOKEN}` },
|
headers: {
|
||||||
|
Authorization: `token ${TOKEN}`,
|
||||||
|
"Content-Type": `multipart/form-data`,
|
||||||
|
},
|
||||||
params: { name: remoteName },
|
params: { name: remoteName },
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue