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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3016606-2.patch | 843 bytes | grask0 |
Comments
Comment #2
grask0 commentedComment #3
otrolopezmasHad the same problem during the last months and today again, I tested the patch and can confirm that it works. Please commit it.
Comment #4
estrejlau commentedAfter 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
Comment #5
daniel kulbeAlso confirming this works. Please commit.
Comment #7
grask0 commentedThank you. Sorry for delay. Committed.