Hello guys

I've faced with strange issue when I want to upload image to cloudinary with subfolders which didn't exist there yet.

The upload directory cloudinary://folder/folder/folder for the file field field_image could not be created or is not accessible. A newly uploaded file could not be saved in this directory as a consequence, and the upload was canceled.

So, after investigation I found some code and I think would be better to remove it.

Please check.

CommentFileSizeAuthor
#2 3016606-2.patch843 bytesgrask0

Comments

Andriy Parkhomiuk created an issue. See original summary.

grask0’s picture

Status: Active » Needs review
StatusFileSize
new843 bytes
otrolopezmas’s picture

Status: Needs review » Reviewed & tested by the community

Had the same problem during the last months and today again, I tested the patch and can confirm that it works. Please commit it.

estrejlau’s picture

After applying the patch, this error message shows in the logs:
InvalidArgumentException: The URI '' is invalid. You must use a valid URI scheme. in Drupal\Core\Url::fromUri() (line 281 of /var/www/web/core/lib/Drupal/Core/Url.php). Additionally, the image is uploaded to Cloudinary, but does not show up in the database as having been associated with the entity on the given field.

Looks like someone created this as a separate issue: https://www.drupal.org/project/cloudinary/issues/3078828

daniel kulbe’s picture

Also confirming this works. Please commit.

  • Andriy Parkhomiuk committed 8e58cc7 on 8.x-1.x
    Issue #3016606 by Andriy Parkhomiuk, otrolopezmas, Daniel Kulbe: Cannot...
grask0’s picture

Status: Reviewed & tested by the community » Fixed

Thank you. Sorry for delay. Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.