Skip to content

Commit

Permalink
Update View.php
Browse files Browse the repository at this point in the history
  • Loading branch information
exussum12 committed Feb 1, 2020
1 parent 6c8e7c6 commit 2080f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public function readfile($path) {
@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();
Expand All @@ -446,7 +446,7 @@ public function readfilePart($path, $from, $to) {
@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) {
Expand Down

0 comments on commit 2080f87

Please sign in to comment.