|
@@ -22,11 +22,11 @@ function downloadFile($fullPath) { |
|
|
header("Pragma: public"); // required |
|
|
header("Pragma: public"); // required |
|
|
header("Expires: 0"); |
|
|
header("Expires: 0"); |
|
|
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); |
|
|
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); |
|
|
header("Cache-Control: private",false); // required for certain browsers |
|
|
|
|
|
|
|
|
header("Cache-Control: private", false); // required for certain browsers |
|
|
header("Content-Type: application/force-download"); |
|
|
header("Content-Type: application/force-download"); |
|
|
header("Content-Disposition: attachment; filename=\"".basename($fullPath)."\";" ); |
|
|
header("Content-Disposition: attachment; filename=\"".basename($fullPath)."\";" ); |
|
|
header("Content-Transfer-Encoding: binary"); |
|
|
header("Content-Transfer-Encoding: binary"); |
|
|
header("Content-Length: ".$fsize); |
|
|
|
|
|
|
|
|
header("Content-Length: " . $fsize); |
|
|
ob_clean(); |
|
|
ob_clean(); |
|
|
flush(); |
|
|
flush(); |
|
|
readfile($fullPath); |
|
|
readfile($fullPath); |
|
|