0
How is it possible to upload an audio tag with the file outside of my server
<audio controls>
<source src="../../spool/teste.mp3" type="audio/mp3">
</audio>
On the same level as my www folder I have a folder called musicas, where there are the songs I want to play. I can use a file_exists to know if I have access and I can also unlink, but I can’t click src. How can I do this? also not possible if I pass the exact path C:/wamp/Music/test.mp3
Does this work the same way for linux as well? for example it is possible to set the folder C: as root directory so you can have access to all the files?
– Bruno Silva
Works, on Linux you could set your folder
/home/brunosilva/music
for example as server root. But look at the issue of user that runs the web server. It has to somehow be allowed to read these directories/files. Assuming that the user running the service was, say,,www-data
, or your directories and subdirs have to allow this user to read them (because they would belong to thebrunosilva
) or has to allow reading to all (which is a possible security breach).– C. Bohok