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 345cd49 commit f03737aCopy full SHA for f03737a
src/services/Transcode.php
@@ -787,8 +787,9 @@ protected function getAssetPath(Asset|string $filePath): string
787
788
if ($assetVolume) {
789
// If it's local, get a path to the file
790
- if ($assetVolume instanceof Local) {
791
- $sourcePath = rtrim($assetVolume->path, DIRECTORY_SEPARATOR);
+ $fs = $assetVolume->getFs();
+ if ($fs instanceof Local) {
792
+ $sourcePath = rtrim($fs->path, DIRECTORY_SEPARATOR);
793
$sourcePath .= '' === $sourcePath ? '' : DIRECTORY_SEPARATOR;
794
$folderPath = '';
795
try {
0 commit comments