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);
|
const stream = createReadStream(localPath);
|
||||||
return axios.post(
|
return axios.post(
|
||||||
uploadsURL,
|
uploadsURL,
|
||||||
{
|
stream,
|
||||||
attachment: stream,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${TOKEN}`,
|
Authorization: `Bearer ${TOKEN}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue