Skip to content

Commit

Permalink
AwsS3RemoteStorageDriver: fix localPath vs. localName mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Oct 8, 2018
1 parent 62611ff commit b912995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RemoteStorageDrivers/AwsS3RemoteStorageDriver.php
Expand Up @@ -72,7 +72,7 @@ public function upload(string $localPath): bool
}

try {
$this->requestSender->sendRequest($method, $this->getUrl($localPath), $headers, $bodyStreamHandle);
$this->requestSender->sendRequest($method, $this->getUrl(basename($localPath)), $headers, $bodyStreamHandle);
return true;

} catch (\Throwable $e) {
Expand Down

0 comments on commit b912995

Please sign in to comment.