chrike528 Posted January 15, 2004 Share Posted January 15, 2004 I have set up OSC to allow the costumer to download certain MP3 files after payment. Everything works great except when they click a download link it downloads the right file but calls all of them "download" instead of mp3_name.mp3 If I use wmv or jpg it works fine. Please help been killing myself for days now. Thanks in advance, Mike Bruneau Link to comment Share on other sites More sharing options...
chrike528 Posted January 15, 2004 Author Share Posted January 15, 2004 I think this is where the name should be........any suggestions // Now send the file with header() magic header("Expires: Mon, 26 Nov 1962 00:00:00 GMT"); header("Last-Modified: " . gmdate("D,d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-Type: Application/octet-stream"); header("Content-disposition: attachment; filename=" . $downloads['orders_products_filename']); Thanks again, Mike Bruneau Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.