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 7ab9721 commit 9aa358aCopy full SHA for 9aa358a
src/CloudinaryAdapter.php
@@ -262,7 +262,13 @@ public function directoryExists(string $path): bool
262
*/
263
public function read(string $path): string
264
{
265
- $resource = (array) $this->adminApi()->asset($this->preparePublicId($path));
+ try {
266
+ $resource = (array) $this->adminApi()->asset($this->preparePublicId($path));
267
+ } catch (Exception) {
268
+ $resource = (array) $this->adminApi()->asset(
269
+ $this->preparePublicId($path), ['resource_type' => 'video']
270
+ );
271
+ }
272
273
return file_get_contents($resource['secure_url']);
274
}
0 commit comments