Browse Source

Misc

pull/1/head
falkTX 11 years ago
parent
commit
3ad1160464
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      paste/download.php

+ 2
- 2
paste/download.php View File

@@ -22,11 +22,11 @@ function downloadFile($fullPath) {
header("Pragma: public"); // required
header("Expires: 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-Disposition: attachment; filename=\"".basename($fullPath)."\";" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".$fsize);
header("Content-Length: " . $fsize);
ob_clean();
flush();
readfile($fullPath);


Loading…
Cancel
Save