mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Update View.php
This commit is contained in:
parent
75b99e85ff
commit
65e134c13a
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue