Skip to content

Commit

Permalink
Fix the error when publicUrl is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
sovetski authored Apr 7, 2024
1 parent e41eedb commit 695ad53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Storage/FlysystemStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function resolveUri(object|array $obj, ?string $fieldName = null, ?string
try {
return $fs->publicUrl($path);
} catch (FilesystemException) {
return null;
return $mapping->getUriPrefix().'/'.$path;
}
}
}

0 comments on commit 695ad53

Please sign in to comment.