# Media Cache for AmazonS3 cannot cache files without extension

**URL:** <https://community.wowza.com/t/media-cache-for-amazons3-cannot-cache-files-without-extension/92905>\
**Category:** Wowza Streaming Engine\
**Tags:** transcoder\
**Created:** [March 1, 2021, 4:13pm UTC](https://community.wowza.com/t/media-cache-for-amazons3-cannot-cache-files-without-extension/92905 "2021-03-01T16:13:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin\_hsu](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kevin\_hsu](https://community.wowza.com/u/kevin_hsu)\
**Post date:** [March 1, 2021, 4:13pm UTC](https://community.wowza.com/t/media-cache-for-amazons3-cannot-cache-files-without-extension/92905/1 "2021-03-01T16:13:40Z")

</div>

hi all,  
we have used MediaCache for VoD application via AmazonS3  
for the files with extension(videos/example.mp4), we can stream well.  
however, for the files without extension(videos/sample), we cannot stream well.  
we will get 404 not found for the playlist.m3u8

we have a bunch of files in S3 without extension.  
Is there any solution or setting to use MediaCache without file extension?

---

<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 2, 2021, 4:06pm UTC](https://community.wowza.com/t/media-cache-for-amazons3-cannot-cache-files-without-extension/92905/2 "2021-03-02T16:06:42Z")

</div>

I think that this property may work for you:

**Properties**

Properties stored in the MediaCache.getProperties() container. Below are a few of the more  
interesting properties that are available:

_addFileExtensionIfNeeded_

If true and the stream name does not include a file extension a file extension will be added based on the stream name prefix.

Here is the full MediaCache guide pdf with all the properties and examples:

> **[WowzaServerMediaCache\_UsersGuide.pdf](https://www.wowza.com/resources/WowzaServerMediaCache_UsersGuide.pdf)**
>
> 413.32 KB

---

<div class="post-metadata">

**Author:** ![kevin\_hsu](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kevin\_hsu](https://community.wowza.com/u/kevin_hsu)\
**Post date:** [March 9, 2021, 2:36pm UTC](https://community.wowza.com/t/media-cache-for-amazons3-cannot-cache-files-without-extension/92905/3 "2021-03-09T14:36:58Z")

</div>

Hi Rose,

Thanks for your reply. This may not be suitable for our situation.  
The solution you replied to is for streaming without the file extension.  
that means you can use https://your\_wowza\_host/filename instead of https://your\_wowza\_host/filename.mp4  
however, the file on S3 still needs to name as filename.mp4  
if the file named `filename` instead of `filename.mp4`, the streaming will not work properly  
is there any other solution we can try?

---

<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 9, 2021, 6:04pm UTC](https://community.wowza.com/t/media-cache-for-amazons3-cannot-cache-files-without-extension/92905/4 "2021-03-09T18:04:36Z")

</div>

Hello, yes, thanks for explaining and I do understand you need the suffix or extension at the end of your filename. I would suggest submitting a support ticket since the answer I gave you was provided to me right from our MediaCache engineer. He had said it will add the extension if it’s missing which seems to be what your asking for- how to add the mp4 suffix at the end:  
_addFileExtensionIfNeeded_

Set the boolean value to **true** so any stream name that does not include a file extension will have a file extension added.

The best way is to have an engineer look at this with you in case it’s not working the way you need it to.

Perhaps this video can help, it’s a tutorial in how to stream mp4 assets stored in remote storage location through media cache. Fast forward to 1:24 in the video though where he gets to the MediaCache part. If not, please send a support ticket so you can get this working the way you’d like, we’re happy to review and troubleshoot how to get that extension added to the end of your mp4 files.

[![](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/1006bd75cd196092e427fb6aca02280e5ac917fa.jpeg "Video On Demand With Wowza Streaming Engine") ](https://www.youtube.com/watch?v=yPuBojdsfQo&t=1s)
