Skip to content

Commit

Permalink
Increase max read
Browse files Browse the repository at this point in the history
8kb is very low, especially given this will be local files

Signed-off-by: Scott Dutton <scott@exussum.co.uk>
  • Loading branch information
exussum12 committed Aug 31, 2019
1 parent 50769b5 commit cdce63c
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 @@ -423,7 +423,7 @@ public function readfile($path) {
@ob_end_clean();
$handle = $this->fopen($path, 'rb');
if ($handle) {
$chunkSize = 8192; // 8 kB chunks
$chunkSize = 512000; // 500 kB chunks
while (!feof($handle)) {
echo fread($handle, $chunkSize);
flush();
Expand All @@ -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 = 512000; // 500 kB chunks
$startReading = true;

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

0 comments on commit cdce63c

Please sign in to comment.