Amazon web services ZendService\Amazon\S3尝试实例化对象时出错500
我试图通过zend framework 3应用程序在S3中列出我的bucket 我已经通过composer安装了ZendService\Amazon\S3,并遵循本教程: 但是当我访问我的函数时,我得到了错误500 我的代码如下:Amazon web services ZendService\Amazon\S3尝试实例化对象时出错500,amazon-web-services,amazon-s3,zend-framework3,Amazon Web Services,Amazon S3,Zend Framework3,我试图通过zend framework 3应用程序在S3中列出我的bucket 我已经通过composer安装了ZendService\Amazon\S3,并遵循本教程: 但是当我访问我的函数时,我得到了错误500 我的代码如下: public function uploadFotoAction() { // $awsAccessKey value here // $awsSecretKey value here $s3 = new ZendService\Amazo
public function uploadFotoAction() {
// $awsAccessKey value here
// $awsSecretKey value here
$s3 = new ZendService\Amazon\S3( $awsAccessKey, $awsSecretKey );
return new JsonModel([
'sucesso' => true
]);
}
我需要配置更多内容?因此,出现了两个问题: 而不是
ZendService\Amazon\S3( $awsAccessKey, $awsSecretKey );
必须使用
\ZendService\Amazon\S3\S3( $awsAccessKey, $awsSecretKey );
另一个问题是,我的凭据没有列出存储桶的权限,因此当我尝试这样做时,当您将所要求的内容与教程的URL进行比较时,会出现错误500,您是否认为您可能正在使用过时的教程?试试看吧,谢谢!但是我在S3类上遇到了问题,zend应用程序运行良好。你知道有什么好的更新教程吗?再次感谢^^'