File wrapper s3:// not working

Created on 24 February 2017, over 8 years ago
Updated 14 January 2025, 5 months ago

Checked: "Use S3 for public:// files"
Did: drush s3fs-refresh-cache
Asset paths are being rewritten to e.g.: http://www.example.com/s3/files/styles/mystyle/myimages/myimage.jpg?itok...

So I would expect this should be working:

$files = file_scan_directory('s3://', '/.*/');
dsm($files);

The resulting array is empty.
Same if I try to show contents of a particular folder (that was before under /files but now is on S3):

$files = file_scan_directory('s3://myfolder', '/.*/');
dsm($files);

What am I doing wrong?

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Vacilando Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 reached end of life on January 5th.

    The 7.x branches of S3FS do not have any additional planned releases.

    The requests in this issue do not appear to exist in the 8.x-3.x and newer branches.

Production build 0.71.5 2024