interfaces: part two (actual fix) (actual fix)

This commit is contained in:
Franco Fichtner 2019-09-16 15:56:43 +02:00
parent 01cdf46908
commit 8a73ea0af2

View File

@ -160,8 +160,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename={$bfilename}");
header("Content-Length: ".filesize($filename));
header('Content-Transfer-Encoding: binary');
$file = fopen($filename, 'rb');
fpassthru($fp);
fpassthru($file);
break;
}
}