For security issues, please email [email protected] directly.
follow steps at https://docs.directus.io/extensions/storage-adapters.html#core-adapters
'storage' => [
'adapter' => 's3',
'key' => '<AWSAccessKeyId>',
'secret' => '<AWSSecretKey>',
'bucket' => 'odbdirectus',
'version' => 'latest',
'region' => 'eu-west-2',
'options' => [
'ACL' => 'public-read',
'Cache-Control' => 'max-age=604800'
],
'endpoint' => 'https://apigateway.eu-west-2.amazonaws.com',
'root' => '/',
'thumb_root' => '/thumbnails',
'root_url' => 'https://s3-eu-west-2.amazonaws.com/odbdirectus',
],File uploads, can see it in File Library
master branchHi @lintoncaldecott,
I'm wondering why you're setting endpoint directly? Since you're using official amazonaws, this shouldn't be necessary. For me, the apigateway-* prefixed there looks really strange. Where does this come from?
Also I would recommend setting your root to /originals instead of /. Since it _might_ interact with your thumbnails.
Either there is a missing permission on your bucket (which only you could check in your setting on AWS), or there is something wrong in your configuration.
Would you mind trying this configuration?
'storage' => [
'adapter' => 's3',
'key' => '<AWSAccessKeyId>',
'secret' => '<AWSSecretKey>',
'bucket' => 'odbdirectus',
'version' => 'latest',
'region' => 'eu-west-2',
'options' => [ 'ACL' => 'public-read', 'Cache-Control' => 'max-age=604800' ],
'root' => '/originals',
'thumb_root' => '/thumbnails',
'root_url' => 'https://eu-west-2.amazonaws.com/odbdirectus/originals',
]
Hope this helps!
~ Michael
@lintoncaldecott - Have you tried the configuration which @mvhirsch provided?
@lintoncaldecott - May I have an update on this?
Hey, @lintoncaldecott - Can you please provide your inputs here? If possible then please try to check it in our latest version.
@lintoncaldecott - 馃敂
Closing this issue due to inactivity. Feel free to reopen. 馃檪
Hi team, I am still having this issue,
Most helpful comment
Hi @lintoncaldecott,
I'm wondering why you're setting
endpointdirectly? Since you're using official amazonaws, this shouldn't be necessary. For me, theapigateway-*prefixed there looks really strange. Where does this come from?Also I would recommend setting your
rootto/originalsinstead of/. Since it _might_ interact with your thumbnails.Either there is a missing permission on your bucket (which only you could check in your setting on AWS), or there is something wrong in your configuration.
Would you mind trying this configuration?
Hope this helps!
~ Michael