Another option is to use a small PHP file to handle the download, put in the same folder as the .mp3:
which can be accessed in any anchor like this:
Code:
<?php $file = $_GET['file']; header ("Content-type: octet/stream"); header ("Content-disposition: attachment; filename=".$file.";"); header("Content-Length: ".filesize($file)); readfile($file); exit; ?>
Code:
<a href="direct_download.php?file=fineline.mp3">Download the mp3</a>
No comments:
Post a Comment