# Wowza Uploading an Assest

**URL:** <https://community.wowza.com/t/wowza-uploading-an-assest/94926>\
**Category:** Wowza Video (Formerly Streaming Cloud)\
**Tags:** rest-api\
**Created:** [May 9, 2022, 6:31pm UTC](https://community.wowza.com/t/wowza-uploading-an-assest/94926 "2022-05-09T18:31:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matheus\_Leal](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Matheus\_Leal](https://community.wowza.com/u/Matheus_Leal)\
**Post date:** [May 9, 2022, 6:31pm UTC](https://community.wowza.com/t/wowza-uploading-an-assest/94926/1 "2022-05-09T18:31:46Z")

</div>

Hello I was able to create an asset via fetch on JavaScript, but have been struggling to do a put request with fetch.

curl -X PUT -H ‘Content-Type: video/mp4’ --upload-file _file\_path_ ’ _upload\_url_ ’

What I have so far:

const data = {  
asset: {  
file\_name: “Chukker\_old\_new\_lowres.mp4”  
}  
}

const filedata = {  
video : “Chukker\_old\_new\_lowres.mp4”  
}

fetch(“[https://api.video.wowza.com/api/v1.8/assets](https://api.video.wowza.com/api/v1.8/assets)”, {  
body: JSON.stringify(data),  
headers: {  
“Content-Type”: “application/json”,  
“Wsc-Access-Key”: “{ACCESS-KEY}”,  
“Wsc-Api-Key”: “{API-KEY}”  
},  
method: “POST”  
}).then(res =\> res.json()).then(data =\> {  
console.log(‘Success’, data.asset.upload\_url);  
fetch(data.asset.upload\_url, {  
video: JSON.stringify(filedata),  
headers: {  
“Content-Type”: video/mp4,  
},  
method: “PUT”  
})  
}).catch((error) =\> {  
console.error(‘Error:’, error);  
});

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [May 10, 2022, 3:54pm UTC](https://community.wowza.com/t/wowza-uploading-an-assest/94926/2 "2022-05-10T15:54:22Z")

</div>

Hello and welcome to the community @Matheus_Leal. I am assuming you have contacted sales to have this feature added to your Wowza Video account correct?

**You must obtain a license for the Asset Manager to add this capability to your new or existing account. Contact [sales@wowza.com](mailto:sales@wowza.com) for more information.**

If you have configured the auth headers correctly and the API call, you should be able to query the API for a status on the upload. It looks though like you are getting a console error, which makes me think this is an account issue.

If it’s not an account issue and you have paid to have this upload asset feature added to your account, please send us a [support ticket](https://www.wowza.com/support/open-ticket) and we will troubleshoot for you.

  

You are following this article correct?

[https://www.wowza.com/docs/upload-an-asset-with-the-wowza-video-rest-api](https://www.wowza.com/docs/upload-an-asset-with-the-wowza-video-rest-api)

---

<div class="post-metadata">

**Author:** ![00ff9c63c8041bf0529a](https://avatars.discourse-cdn.com/v4/letter/0/ed8c4c/32.png) [@00ff9c63c8041bf0529a](https://community.wowza.com/u/00ff9c63c8041bf0529a)\
**Post date:** [January 12, 2023, 7:03pm UTC](https://community.wowza.com/t/wowza-uploading-an-assest/94926/3 "2023-01-12T19:03:51Z")

</div>

Hello Friend!

if you have problems with the visualization of the stream with Womza write to me at [correodummy0001@gmail.com](mailto:correodummy0001@gmail.com) for help

---

<div class="post-metadata">

**Author:** ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)\
**Post date:** [January 12, 2023, 8:18pm UTC](https://community.wowza.com/t/wowza-uploading-an-assest/94926/4 "2023-01-12T20:18:23Z")

</div>

@Matheus_Leal Keep us posted if you are still are having issues. Javascript example can be found here for assets PUT request:

> **[Wowza Video REST API](https://developer.wowza.com/docs/wowza-video/api/video/current/overview/)**
>
> Developer documentation for Wowza
