diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 20c0fd3ed1ba7..0453064ae5231 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -423,7 +423,7 @@ public function readfile($path) { @ob_end_clean(); $handle = $this->fopen($path, 'rb'); if ($handle) { - $chunkSize = 8192; // 8 kB chunks + $chunkSize = 524288; // 512 kB chunks while (!feof($handle)) { echo fread($handle, $chunkSize); flush(); @@ -447,7 +447,7 @@ public function readfilePart($path, $from, $to) { @ob_end_clean(); $handle = $this->fopen($path, 'rb'); if ($handle) { - $chunkSize = 8192; // 8 kB chunks + $chunkSize = 524288; // 512 kB chunks $startReading = true; if ($from !== 0 && $from !== '0' && fseek($handle, $from) !== 0) {