I'm trying to list my bucket in S3 throught my zend framework 3 application.
I've already install ZendService\Amazon\S3 via composer and I'm following this tutorial:
https://framework.zend.com/manual/2.4/en/modules/zendservice.amazon.s3.html
But when I access my function I get error 500.
My code is like this:
public function uploadFotoAction() {
// $awsAccessKey value here
// $awsSecretKey value here
$s3 = new ZendService\Amazon\S3( $awsAccessKey, $awsSecretKey );
return new JsonModel([
'sucesso' => true
]);
}
I need to config something more?