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

CommentFileSizeAuthor
Details-issue.png132.95 KBpraveen3555

Comments

Praveen3555 created an issue.

praveen3555’s picture

Try to replicate as

  1. I have downloaded the module from the composer.
  2. Installed the module from EXTEND.
  3. After that I added my API key Cloud name and API secret.
  4. Then added a new field in media and chose the media library as form display and trying to upload the image and it is showing the error.
adaddinsane’s picture

Our issue has a similar result but it's not the same.

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. And yes, inline-images exists, and has been in use for those 5 years.

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.