From: Scott Dutton Date: Wed, 15 Apr 2020 18:10:06 +0000 (+0100) Subject: Update View.php X-Git-Tag: v19.0.0beta5~37^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65e134c13ae5e82b1c31fb2481eb9ebe0962f221;p=nextcloud-server.git Update View.php --- diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index a5f93b4b73c..0453064ae52 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -423,7 +423,7 @@ class View { @ob_end_clean(); $handle = $this->fopen($path, 'rb'); if ($handle) { - $chunkSize = 512000; // 500 kB chunks + $chunkSize = 524288; // 512 kB chunks while (!feof($handle)) { echo fread($handle, $chunkSize); flush(); @@ -447,7 +447,7 @@ class View { @ob_end_clean(); $handle = $this->fopen($path, 'rb'); if ($handle) { - $chunkSize = 512000; // 500 kB chunks + $chunkSize = 524288; // 512 kB chunks $startReading = true; if ($from !== 0 && $from !== '0' && fseek($handle, $from) !== 0) {