我正在尝试将 S3 对象从一个存储桶复制到另一个存储桶,响应如下所示 -
`object(stdClass)#24 (3) {
["error"]=> array(2) {
["code"]=> string(9)
"NoSuchKey" ["message"]=> string(33)
"The specified key does not exist."
}
["code"]=> int(404) ["headers"]=> array(1) {
["type"]=> string(15) "application/xml"
}
}
Run Code Online (Sandbox Code Playgroud)
`
这是代码的外观 -
var_dump($this->s3->copyObject('bucket_1','bucket_1/'. images/1.jpg, 'bucket_2', 'bucket_2/images')).die();
Run Code Online (Sandbox Code Playgroud)
根据copyObject 的方法签名,我需要提供Source object URI和Destination object URI。
任何人都请帮助我知道这里出了什么问题?
谢谢。