We are trying to download a mp3 file, we create an iframe in the page and set its source:
mp3 files are set to 777 permission and are accessible, for example:
dl.php file has this contest:
$name = $_GET['name'];
header("Content-Disposition: attachment; filename=\"$name\"");
$path = str_replace(' ', '%20', $_GET['path']);
Go to this link and click download icons in the audio player, you will get 403 error in console.
Can anybody help solving this error?