# Specify s3 bucket folder/prefix dynamically

**URL:** <https://community.wowza.com/t/specify-s3-bucket-folder-prefix-dynamically/53075>\
**Category:** Wowza Developer Dojo\
**Created:** [March 25, 2019, 3:19pm UTC](https://community.wowza.com/t/specify-s3-bucket-folder-prefix-dynamically/53075 "2019-03-25T15:19:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ikhlas\_Alhussien2](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@Ikhlas\_Alhussien2](https://community.wowza.com/u/Ikhlas_Alhussien2)\
**Post date:** [March 25, 2019, 3:19pm UTC](https://community.wowza.com/t/specify-s3-bucket-folder-prefix-dynamically/53075/1 "2019-03-25T15:19:24Z")

</div>

Hi guys,

I need your advise on the following workflow. I have a live-streaming app built on top of Wowza Streaming Engine. Application users can request to broadcast a live stream. They would provide some information in the request, and they would get a URI and credentials to start streaming. Once a streaming stops, I need the recorded media to be uploaded to specific folder location/file prefix in s3 bucket. The location is based on information provided in users request.

I am using s3upload plugin to automatically upload files to s3 bucket. I need a way to set the "s3UploadFilePrefix " dynamically as per user request. Is that possible? or is there anyway to attain the desired workflow?

Thank you,

Ikhlas

---

<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:** [March 25, 2019, 5:53pm UTC](https://community.wowza.com/t/specify-s3-bucket-folder-prefix-dynamically/53075/2 "2019-03-25T17:53:04Z")

</div>

Let me check for you @Ikhlas Alhussien. Reply shortly…

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [March 26, 2019, 8:17am UTC](https://community.wowza.com/t/specify-s3-bucket-folder-prefix-dynamically/53075/3 "2019-03-26T08:17:05Z")

</div>

Hi @Ikhlas Alhussien, the source code for that module is available from [https://github.com/WowzaMediaSystems/wse-plugin-s3upload](https://github.com/WowzaMediaSystems/wse-plugin-s3upload), so you could make any change you want and re-compile it, then use it for your case. Alternatively, you could

1. Ask a Wowza Consultant to make the changes for you (see [https://www.wowza.com/community/spaces/26/find-a-consultant.html](https://www.wowza.com/community/spaces/26/find-a-consultant.html)), or

2. Create a separate Wowza Application per stream, and set the module settings per application. Requires slightly more resources, but you won’t need to change the module then. I guess that’ll work if you don’t have too many concurrent streams/broadcasters. You can control (create, configure, delete) Wowza Applications via the REST API, so make the calls from your own application.
