📅  最后修改于: 2022-03-11 14:59:46.392000             🧑  作者: Mango
You have to specify the bucket inside the copy source
// Copy an object.
$s3->copyObject(array(
'Bucket' => $targetBucket,
'Key' => $targetKeyname,
'CopySource' => "{$sourceBucket}/{$sourceKeyname}",
));