# How to access files that are outside of the webroot

**URL:** <https://discourse.cakephp.org/t/how-to-access-files-that-are-outside-of-the-webroot/2463>\
**Category:** Uncategorized\
**Created:** [April 23, 2017, 12:47am UTC](https://discourse.cakephp.org/t/how-to-access-files-that-are-outside-of-the-webroot/2463 "2017-04-23T00:47:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wneild5](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/wneild5/32/618_2.png) [@wneild5](https://discourse.cakephp.org/u/wneild5)\
**Post date:** [April 23, 2017, 12:47am UTC](https://discourse.cakephp.org/t/how-to-access-files-that-are-outside-of-the-webroot/2463/1 "2017-04-23T00:47:39Z")

</div>

Hello there, i am currently trying to create a web based media streaming interface with cakephp v3 and have all of my media mounted at /media/storage on linux. How can i access the media files from my cakephp webroot without having to constantly copy files to a tempory folder?

---

<div class="post-metadata">

**Author:** ![rrd](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/rrd/32/113_2.png) [@rrd](https://discourse.cakephp.org/u/rrd)\
**Post date:** [April 23, 2017, 2:55pm UTC](https://discourse.cakephp.org/t/how-to-access-files-that-are-outside-of-the-webroot/2463/2 "2017-04-23T14:55:33Z")

</div>

That is depend on your webserver settings. If the files are readable by the webserver user you can access them.
