Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Dutton <exussum12@users.noreply.github.com>2020-04-15 21:10:06 +0300
committerGitHub <noreply@github.com>2020-04-15 21:10:06 +0300
commit65e134c13ae5e82b1c31fb2481eb9ebe0962f221 (patch)
tree002bf281b732c3a3695ed6de405f28bd9dd364f6 /lib/private/Files/View.php
parent75b99e85fff200a1fc88eb0b171fc8834a2f085e (diff)
Update View.php
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r--lib/private/Files/View.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index a5f93b4b73c..0453064ae52 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 = 512000; // 500 kB chunks
+ $chunkSize = 524288; // 512 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 = 512000; // 500 kB chunks
+ $chunkSize = 524288; // 512 kB chunks
$startReading = true;
if ($from !== 0 && $from !== '0' && fseek($handle, $from) !== 0) {