We are switching to use the S3 File System module (https://www.drupal.org/project/s3fs) to manage our files.

In our testing, we found that any File Entity Paths setting is ignored, and instead, the path included with the field is used. If the field path is blank, it is saved at the root of the file folder. If it has a value, it is placed there, rather than the File Entity Path location.

It is working correctly for File Entities that have a field folder path set, and bypasses the FE Paths settings entirely.

CommentFileSizeAuthor
#3 fe_paths-s3fs_support-2969080-3.patch2.99 KBsgdev

Comments

ron_s created an issue. See original summary.

sgdev’s picture

Issue summary: View changes
sgdev’s picture

Title: Does not support S3 File System public and private folders » Support S3 File System module
Issue tags: +s3fs, +Amazon S3
StatusFileSize
new2.99 KB

We have a working patch. The solution was actually more simple than originally thought.

Only three small changes were necessary:

1) Allow s3 as a valid stream wrapper in fe_paths_file_process_available.
2) Modify admin page to include s3 settings if the module is active.
3) Add an install update to set s3 default values if FE Paths settings have been previously saved.

Please review attached, thanks.

sgdev’s picture

Status: Active » Needs review