diff options
author | Scott Dutton <exussum12@users.noreply.github.com> | 2019-08-30 23:49:23 +0100 |
---|---|---|
committer | Scott Dutton <scott@exussum.co.uk> | 2020-04-12 13:01:29 +0100 |
commit | 75b99e85fff200a1fc88eb0b171fc8834a2f085e (patch) | |
tree | b3493d481f4cdf4c8001b222c7fbd2e2a371bef5 /lib/private/Files/View.php | |
parent | 89242142998475fa94f27f99b02c4429b0b9bffd (diff) | |
download | nextcloud-server-75b99e85fff200a1fc88eb0b171fc8834a2f085e.tar.gz nextcloud-server-75b99e85fff200a1fc88eb0b171fc8834a2f085e.zip |
Increase max read
8kb is very low, especially given this will be local files
Signed-off-by: Scott Dutton <scott@exussum.co.uk>
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r-- | lib/private/Files/View.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 20c0fd3ed1b..a5f93b4b73c 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -423,7 +423,7 @@ class View { @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(); @@ -447,7 +447,7 @@ class View { @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) { |