Data Request API helper #10
1 changed files with 1 additions and 3 deletions
|
|
@ -19,9 +19,7 @@ async function uploadFile(uploadsURL, localPath, remoteName = undefined) {
|
|||
const stream = createReadStream(localPath);
|
||||
return axios.post(
|
||||
uploadsURL,
|
||||
{
|
||||
attachment: stream,
|
||||
},
|
||||
stream,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${TOKEN}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue