Try using the stream as the request payload

This commit is contained in:
Oliver 2025-11-18 17:06:11 -07:00
parent cd3b5998dd
commit 6e5422e08b

View file

@ -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}`,