Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into fix/s3_largefile_timeouts
  • Loading branch information
skjnldsv authored Aug 18, 2021
commit 6a7fbd3ce60077cdd09133bf2d118619b727e347
3 changes: 3 additions & 0 deletions lib/private/Files/ObjectStore/S3ObjectTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public function writeObject($urn, $stream, string $mimetype = null) {
'key' => $urn,
'part_size' => $this->uploadPartSize,
'concurrency' => $this->config->getSystemValue('objectstore.arguments.concurrency', 5),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should rather be passed as a param of the existing object store configuration which are parsed in the S3ConnectionTrait, similar to how it is done for the uploadPartSize already:

$this->uploadPartSize = !isset($params['uploadPartSize']) ? 524288000 : $params['uploadPartSize'];

'params' => [
'ContentType' => $mimetype
],
]);

try {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.