Skip to content

Commit

Permalink
file manager fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-jennings authored Jul 7, 2020
1 parent b4bfdad commit 8c79ff8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Console/Assets/FileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public function run()
'$uploaded_bytes = $this->fix_integer_overflow((int)$content_range[1]);',
'$uploaded_bytes = $this->fix_integer_overflow($content_range ? (int)$content_range[1] : 0);'
);
File::replaceString(
$this->_baseFolder . '/UploadHandler.php',
'\'readfile_chunk_size\' => 10 * 1024 * 1024, // 10 MiB',
'\'readfile_chunk_size\' => 2 * 1024 * 1024, // 2 MiB'
);

// remove conflicting response class
unlink($this->_baseFolder . '/include/Response.php');
Expand Down

0 comments on commit 8c79ff8

Please sign in to comment.