Skip to content

Commit 2080f87

Browse files
committed
Update View.php
1 parent 6c8e7c6 commit 2080f87

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
@@ -422,7 +422,7 @@ public function readfile($path) {
422422
@ob_end_clean();
423423
$handle = $this->fopen($path, 'rb');
424424
if ($handle) {
425-
$chunkSize = 512000; // 500 kB chunks
425+
$chunkSize = 524288; // 512 kB chunks
426426
while (!feof($handle)) {
427427
echo fread($handle, $chunkSize);
428428
flush();
@@ -446,7 +446,7 @@ public function readfilePart($path, $from, $to) {
446446
@ob_end_clean();
447447
$handle = $this->fopen($path, 'rb');
448448
if ($handle) {
449-
$chunkSize = 512000; // 500 kB chunks
449+
$chunkSize = 524288; // 512 kB chunks
450450
$startReading = true;
451451

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

0 commit comments

Comments
 (0)