# S3Upload to directory

**URL:** <https://community.wowza.com/t/s3upload-to-directory/49281>\
**Category:** Wowza Developer Dojo\
**Created:** [July 26, 2017, 1:05pm UTC](https://community.wowza.com/t/s3upload-to-directory/49281 "2017-07-26T13:05:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Mestre](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jose\_Mestre](https://community.wowza.com/u/Jose_Mestre)\
**Post date:** [July 26, 2017, 1:05pm UTC](https://community.wowza.com/t/s3upload-to-directory/49281/1 "2017-07-26T13:05:20Z")

</div>

Hello.

I’ve configured the module to upload the streamings to my s3bucket, but they appear in the root folder.

Is there any posibility to choose the folder where they appear?

Kind Regards.

---

<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:** [July 30, 2017, 9:55pm UTC](https://community.wowza.com/t/s3upload-to-directory/49281/2 "2017-07-30T21:55:48Z")

</div>

Hello @José Mestre

You cannot specify a path/subfolder using that same property as the S3Uplaod module will attempt to upload the video file into an S3 bucket named “myS3bucket/subfolder”.

S3 buckets do not have a directory tree system, you will need to use forward slashes in the file names to order the files; so if you save the file to bucketName/path/to/[myFile.mp](http://myfile.mp/), it should (theoretically) save it to this “folder”.

[http://docs.aws.amazon.com/AmazonS3/latest/UG/FolderOperations.html](http://docs.aws.amazon.com/AmazonS3/latest/UG/FolderOperations.html)

Amazon S3 has a flat structure with no hierarchy like you would see in a typical file system. However, for the sake of organizational simplicity, the Amazon S3 console supports the folder concept as a means of grouping objects. Amazon S3 does this by using key name prefixes for objects.

Here’s a link to the sample code, in-case you need to make edits for your workflow needs:  
[https://github.com/WowzaMediaSystems/wse-plugin-s3upload](https://github.com/WowzaMediaSystems/wse-plugin-s3upload)

Regards,

JasonT
