Skip to content

Feature/cms 989 temp upload location filesystem #13957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Dec 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
uncommented for v5; if fs doesn't have URLs or used as temp
  • Loading branch information
i-just committed Nov 22, 2023
commit c5bd7559543482bc90f5f5862dd022e7fda3e4f9
8 changes: 4 additions & 4 deletions src/elements/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -2046,10 +2046,10 @@ private function _url(mixed $transform = null, ?bool $immediately = null): ?stri
return $url;
}

// todo: uncomment for v5. Currently Imager X is relying on a relative URL being returned
//if (!$volume->getFs()->hasUrls) {
// return null;
//}
$fs = $volume->getFs();
if (!$fs->hasUrls || Assets::isUsedForTempUploads($fs)) {
return null;
}

return Html::encodeSpaces(Assets::generateUrl($volume, $this));
}
Expand Down