When trying to use root sub-folder (cloudinary.[folder]://) as the target in image field it fails while uploading file, because drupal cannot resolve stream. It seems that in modules/cloudinary_stream_wrapper/src/CloudinaryStreamWrapperServiceProvider.php the code should be not

$container->register('stream_wrapper.cloudinary.' . $folder, 'Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper')
            ->addTag('stream_wrapper', ['scheme' => $folder]);

but

$container->register('stream_wrapper.cloudinary.' . $folder, 'Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper')
            ->addTag('stream_wrapper', ['scheme' => 'cloudinary.' . $folder]);

Unfortunately, after this fix it still doesn't upload images throwing "The URI 'cloudinary.folder' is invalid. You must use a valid URI scheme." This is because such format doesn't allowed by validator (see FileSystem::uriScheme())

Comments

berdyshev created an issue.

drupal.ninja03’s picture

I am also facing this same issue. Is there any fix for this?