Answers for "aws sdk s3 copy object bucket not found"

1

aws sdk s3 copy object bucket not found

You have to specify the bucket inside the copy source

// Copy an object.
$s3->copyObject(array(
    'Bucket'     => $targetBucket,
    'Key'        => $targetKeyname,
    'CopySource' => "{$sourceBucket}/{$sourceKeyname}",
));
Posted by: Guest on March-02-2021

Browse Popular Code Answers by Language