Welcome Guest, Not a member yet? Register   Sign In
Need help connecting to Amazon S3 storage

(This post was last modified: 06-28-2021, 06:49 AM by chakycool.)

Ok Found the issue from the logs. I had to swap the key and secret when initializing the SDK service.

Thank you superior

Here is the right codeĀ 

PHP Code:
public static function aws($getShared true)
 if (
$getShared) {
 return static::

$config config('AWS');

$credentials = new \Aws\Credentials\Credentials$config->secretKey,$config->accessKey);
$sdk = new \Aws\Sdk([
'credentials' => $credentials,
'region' => $config->region,


Theme © iAndrew 2016 - Forum software by © MyBB