Skip to content

Commit 75b99e8

Browse files
committed
Increase max read
8kb is very low, especially given this will be local files Signed-off-by: Scott Dutton <scott@exussum.co.uk>
1 parent 8924214 commit 75b99e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Files/View.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function readfile($path) {
423423
@ob_end_clean();
424424
$handle = $this->fopen($path, 'rb');
425425
if ($handle) {
426-
$chunkSize = 8192; // 8 kB chunks
426+
$chunkSize = 512000; // 500 kB chunks
427427
while (!feof($handle)) {
428428
echo fread($handle, $chunkSize);
429429
flush();
@@ -447,7 +447,7 @@ public function readfilePart($path, $from, $to) {
447447
@ob_end_clean();
448448
$handle = $this->fopen($path, 'rb');
449449
if ($handle) {
450-
$chunkSize = 8192; // 8 kB chunks
450+
$chunkSize = 512000; // 500 kB chunks
451451
$startReading = true;
452452

453453
if ($from !== 0 && $from !== '0' && fseek($handle, $from) !== 0) {

0 commit comments

Comments
 (0)