file_prepare_directory returns false

Created on 7 December 2022, over 2 years ago
Updated 14 January 2025, 5 months ago

Hello,
I'm having an issue with the module after upgrading from the old one (7.2).

Basically when I save a node with a file filed managed by filefiled path, the files should be moved to the correct directory, but this doesnt happen and I get the error:

File %file could not be copied, because the destination directory %destination is not configured correctly.

I digged a little to find the problem, basically "file_prepare_directory" return somehow false, but if I debug the function it should return TRUE as he uses the function @drupal_mkdir($directory, NULL, TRUE) wich always returns true as the directory uri is "s3://" prefixed.

Commenting the "file_prepare_directory" check inside the core file.inc I have no problem, folder is created and file moved, so is not a permission problem as Drupal says.

I'm I doing something wrong about the conf?
Thank you

💬 Support request
Status

Closed: outdated

Component

Code

Created by

🇮🇹Italy andrea.cavattoni

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