Add temporaryUrl() helper to SpatieMediaLibraryImageEntry (Infolists) #17067
Closed
farshidrezaei
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Filament Infolists, the SpatieMediaLibraryImageEntry class does not expose the temporaryUrl() helper that already exists on the table column and form component.
When the underlying disk (e.g. MinIO or S3) is private, images therefore fail to load in the infolist view.
Steps to reproduce
Configure a private S3/MinIO disk.
Attach media to a model:
Add an infolist entry:
Open the record view in Filament → images are broken (403 from S3).
Expected behaviour
Add a fluent
temporaryUrl()
method (identical to the one on the table column) so we can write:Suggested implementation
Add the trait
Filament\Tables\Columns\Concerns\CanGenerateTemporaryUrls
(or replicate the logic) toSpatieMediaLibraryImageEntry
and pass the generated URL to the image view.Environment
Laravel: 12.x
Filament: 3.x
spatie/laravel-medialibrary: 11.x
filament/spatie-laravel-media-library-plugin: 3.x
Beta Was this translation helpful? Give feedback.
All reactions