We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03deacd commit 96ef088Copy full SHA for 96ef088
bundle/RemoteMedia/Provider/Cloudinary/Gateway/CloudinaryApiGateway.php
@@ -264,7 +264,13 @@ public function countResourcesInFolder($folder)
264
public function get($id, $type)
265
{
266
try {
267
- return (array) $this->cloudinaryApi->resource(urlencode($id), ['resource_type' => $type]);
+ $id = array_map(function (string $part) {
268
+ return urlencode($part);
269
+ }, explode('/', $id));
270
+
271
+ $id = implode('/', $id);
272
273
+ return (array) $this->cloudinaryApi->resource($id, ['resource_type' => $type]);
274
} catch (Cloudinary\Error $e) {
275
return [];
276
}
0 commit comments