ob_flush fixes #326

This commit is contained in:
Milos Stojanovic
2022-05-31 14:11:57 +02:00
parent 20cd7227f6
commit 3f03a4096d

View File

@@ -58,7 +58,7 @@ class DownloadController
if ($file['stream']) {
while (! feof($file['stream'])) {
echo fread($file['stream'], 1024 * 8);
ob_flush();
if (ob_get_level() > 0) {ob_flush();}
flush();
}
fclose($file['stream']);
@@ -150,7 +150,7 @@ class DownloadController
if ($file['stream']) {
while (! feof($file['stream'])) {
echo fread($file['stream'], 1024 * 8);
ob_flush();
if (ob_get_level() > 0) {ob_flush();}
flush();
}
fclose($file['stream']);