Can't access private files on Amazon S3 or Rackspace #52
-
Description:Clicking on Steps To Reproduce:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Seems like a problem with your storage driver @seanthepottingshed, the URL generated by private files should be pointing at the backend files controller by default. Can you share the URL you're seeing and the configuration of the filesystem disk used for the file in question? |
Beta Was this translation helpful? Give feedback.
-
Sure thing here you go: 'storage' => [
'uploads' => [
'disk' => 's3',
'folder' => 'uploads',
'path' => 'https://s3-eu-west-2.amazonaws.com/voyonic-ipqqvojqrg/uploads',
'temporaryUrlTTL' => 0,
],
'media' => [
'disk' => 's3',
'folder' => 'media',
'path' => 'https://s3-eu-west-2.amazonaws.com/voyonic-ipqqvojqrg/media',
],
'resized' => [
'disk' => 'local',
'folder' => 'resized',
'path' => 'https://s3-eu-west-2.amazonaws.com/voyonic-ipqqvojqrg/resized',
],
], |
Beta Was this translation helpful? Give feedback.
-
Sorry I'm an idiot, I've just noticed the issue |
Beta Was this translation helpful? Give feedback.
-
There's your problem: |
Beta Was this translation helpful? Give feedback.
-
@seanthepottingshed no worries, just feeding the google machine for future people with similar issues 😉 |
Beta Was this translation helpful? Give feedback.
There's your problem:
'temporaryUrlTTL' => 0,
. Private files on S3 & Rackspace disks in october take advantage of the temporary URL feature of those drivers for increased security; setting this value to 0 means you're telling the application that you want to create a temporary URL that lasts 0 seconds