Skip to content

Commit

Permalink
fix upload params
Browse files Browse the repository at this point in the history
  • Loading branch information
freyhsiao committed Sep 29, 2020
1 parent fd7bf79 commit 9e9eec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,15 @@ private function prepareUploadConfig(Config $config)
$options = [];

if (isset($this->config['encrypt']) && $this->config['encrypt']) {
$options['params']['ServerSideEncryption'] = 'AES256';
$options['ServerSideEncryption'] = 'AES256';
}

if ($config->has('params')) {
$options['params'] = $config->get('params');
$options = array_merge($options, $config->get('params'));
}

if ($config->has('visibility')) {
$options['params']['ACL'] = $this->normalizeVisibility($config->get('visibility'));
$options['ACL'] = $this->normalizeVisibility($config->get('visibility'));
}

return $options;
Expand Down

0 comments on commit 9e9eec4

Please sign in to comment.