# Struggling to upload assets to Wowza Video using Node.js

**URL:** https://community.wowza.com/t/struggling-to-upload-assets-to-wowza-video-using-node-js/96702
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [December 5, 2023, 7:42am UTC](https://community.wowza.com/t/struggling-to-upload-assets-to-wowza-video-using-node-js/96702 "2023-12-05T07:42:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Travis\_Feldler](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@Travis\_Feldler](https://community.wowza.com/u/Travis_Feldler)
#### Post date: [December 5, 2023, 7:42am UTC](https://community.wowza.com/t/struggling-to-upload-assets-to-wowza-video-using-node-js/96702/1 "2023-12-05T07:42:28Z")

</div>

Hello,  
I have followed the steps which are given on wowza documentation for upload assets through API and I am able to upload a video using curl command in step#2 (Upload Assets). However, I need to do step#2 (Upload Assets) through nodejs in my project. I am running all the steps using Axios. I will explain the steps below, and I would like you to guide me in curl cmd (step#2) have implemented it through nodejs. I might be doing wrong, as the Wowza video UI shows ‘processing,’ and after a while, an error appears. I think in this 2nd step I have done something wrong so please guide me on how I can implement step#2 through nodejs.

const fileData = new FormData();  
fileData.append(‘file’, selectedVideo);

Step 2: Upload the asset - the actual upload\_url I obtained in step 1.  
const uploadVideo = await axios.put(  
wowzaResponse?.data?.asset?.upload\_url,  
fileData,  
{  
headers: {  
‘Content-Type’: ‘video/mp4’,  
Authorization: `Bearer ${WOWZA_TOKEN}`,  
},  
}  
);
