Can't able to upload the images

Created on 4 January 2023, over 1 year ago
Updated 2 February 2024, 8 months ago

When i am trying to upload the image through the cloudinary media library then it shows the below error.

The specified file 'temporary://slide_01_1.jpg' could not be copied because the destination directory 'cloudinary://' is not properly configured. This may be caused by a problem with file or directory permissions.

I am using the FREE account of cloudinary

🐛 Bug report
Status

Active

Version

2.1

Component

User interface

Created by

🇮🇳India Praveen3555

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 Kingdom adaddinsane

    Agreed.

    I have a paid-for Cloudinary account and we have been using it with our site for 5 years.

    The error we have is:

    The specified file '/tmp/phpRyCHmT' could not be copied because the destination directory 'cloudinary://inline-images' is not properly configured.

    However this ONLY happens for inline images created using ckeditor 5. The standard media manager works just fine.

    This error is generated by Drupal, probably because it tries to access the Cloudinary directory (in the prepareDirectory() method of FileSystem) directly which obviously it can't do.

    A further look shows me that very early on it uses is_dir() on the directory alone which returns false but later calls $this->mkdir() which works (because that goes through the streamwrapper). But then it comes back and thinks the full filename must be a directory, which then fails, so the upload fails.

Production build 0.71.5 2024