Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Download filename is just "download"


chrike528

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...