--- download.php.orig 2004-06-04 23:49:53.000000000 -0400 +++ download.php 2004-06-04 23:50:16.000000000 -0400 @@ -76,12 +76,22 @@ // Now send the file with header() magic + + $dl_name = $downloads['orders_products_filename']; + + header("Pragma: public"); + + header("Cache-Control: no-store, no-cache, must-revalidate"); + header("Cache-Control: post-check=0, pre-check=0", false); + header('Content-Transfer-Encoding: none'); + 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']); + + header('Content-Type: application/octet-stream; name="' . $dl_name . '"'); + + header('Content-Disposition: attachment; filename="' . $dl_name . '"'); + header("Content-Length: " . filesize(DIR_FS_DOWNLOAD . $dl_name)); if (DOWNLOAD_BY_REDIRECT == 'true') { // This will work only on Unix/Linux hosts