Skip to content

Commit

Permalink
Fixed #13
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Oct 22, 2020
1 parent 82b1421 commit ed9d563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CosAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,11 @@ protected function getUploadOptions(Config $config)
$options = [];

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

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

return $options;
Expand Down

0 comments on commit ed9d563

Please sign in to comment.