Skip to content

Commit

Permalink
fix: correct resource types
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvantuycom committed May 31, 2024
1 parent 75f2603 commit efff960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CloudinaryAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private function pathToResourceType(string $path): string

switch (true) {
case str_starts_with($mimeType, "image/"):
case "application/pdf":
case $mimeType === "application/pdf":
return AssetType::IMAGE;
case str_starts_with($mimeType, "video/"):
case str_starts_with($mimeType, "audio/"):
Expand Down

0 comments on commit efff960

Please sign in to comment.