Skip to content

Commit

Permalink
Merge pull request #172 from casalogic/bugfix/fix-url-encoded-filenames
Browse files Browse the repository at this point in the history
Fix server side copy of files with spaces in name
  • Loading branch information
frankdejonge committed Jun 5, 2019
2 parents 8c47cf0 + dd44e6e commit a2441c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AwsS3Adapter.php
Expand Up @@ -421,7 +421,7 @@ public function copy($path, $newpath)
[
'Bucket' => $this->bucket,
'Key' => $this->applyPathPrefix($newpath),
'CopySource' => urlencode($this->bucket . '/' . $this->applyPathPrefix($path)),
'CopySource' => rawurlencode($this->bucket . '/' . $this->applyPathPrefix($path)),
'ACL' => $this->getRawVisibility($path) === AdapterInterface::VISIBILITY_PUBLIC
? 'public-read' : 'private',
] + $this->options
Expand Down

0 comments on commit a2441c9

Please sign in to comment.