diff --git a/src/Storage/Service/S3Service.php b/src/Storage/Service/S3Service.php index b1bc37ca..7ef7c63f 100644 --- a/src/Storage/Service/S3Service.php +++ b/src/Storage/Service/S3Service.php @@ -231,9 +231,13 @@ public function move(string $source, string $target): bool */ public function copy(string $source, string $target): bool { - $result = $this->get($source); + $content = $this->get($source); + + if($content === null){ + return false; + } - $this->put($target, $result["Body"]); + $this->put($target, $content); return true; }