我需要将我的文件上传到我在我的amazons3存储上创建的特定目录中。我总是将文件上传到我的存储桶的“绝对路径”上,这样做是这样的:$s3->putObject(array('Bucket'=>$bucket,'ContentType'=>$mime,'Key'=>$localImage,'ACL'=>'public-read','SourceFile'=>$localImage,'CacheControl'=>'max-age=172800',"Expires"=>gmdate("D,dMYH:i:sT",strtotime("+5years")),'Metadata'=>array
我需要将我的文件上传到我在我的amazons3存储上创建的特定目录中。我总是将文件上传到我的存储桶的“绝对路径”上,这样做是这样的:$s3->putObject(array('Bucket'=>$bucket,'ContentType'=>$mime,'Key'=>$localImage,'ACL'=>'public-read','SourceFile'=>$localImage,'CacheControl'=>'max-age=172800',"Expires"=>gmdate("D,dMYH:i:sT",strtotime("+5years")),'Metadata'=>array