Active
Project:
Flysystem - S3
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2020 at 17:11 UTC
Updated:
16 Mar 2021 at 10:46 UTC
Jump to comment: Most recent
I have setup s3 for private files. Upload works. If i set the config to 'public' => TRUE i can download the file as i see the direct linke. When i remove that line it generates the following and i get the response
http://domain.net/en/_flysystem/s3-private/2020-03/filename_test.mp4
404 Not Found
The whole config
's3-private' => [
'driver' => 's3',
'config' => [
'key' => 'AKIA4HWKRFHN3BU4T6WL', // 'key' and 'secret' do not need to be
'secret' => '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', // provided if using IAM
'region' => 'eu-west-1',
'bucket' => 'd8-skybo-shop-private',
Comments
Comment #2
siva01 commentedI have same problem. I am using drupal/flysystem_s3": "^2.0@RC. When I change 'public' to TRUE, it works fine. Problem is only 'public' => FALSE.
Comment #3
siva01 commentedI found related issue with patch: https://www.drupal.org/project/flysystem/issues/3086430
Problem is language prefix in URL.