© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Marco "Mint" Introini

Spatie Media library in Relation Manager

Hi everybody,
I have a SpatieMediaLibrary component in a Relation Manager, but I want only to allow downloading files.

I have for now:

    public function form(Form $form): Form
    {
        return $form
            ->schema([
                SpatieMediaLibraryFileUpload::make('attachments')
                    ->multiple()
                    ->downloadable()
                    ->columnSpanFull()
                    ->deletable(false)
                    ->label('Attachments')
            ]);
    }
    public function form(Form $form): Form
    {
        return $form
            ->schema([
                SpatieMediaLibraryFileUpload::make('attachments')
                    ->multiple()
                    ->downloadable()
                    ->columnSpanFull()
                    ->deletable(false)
                    ->label('Attachments')
            ]);
    }

It works, but it's not graphically pleasing.
I tried with Infolist (even if the best way, I think, is to use a table to show the attachments in a table), but I cannot use the SpatieMediaLibraryFileUpload inside this method.

Is there a way to show a graphically pleasant list of all the attached files and allow the user to download them?

Thanks a lot!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Does Spatie Media Library works with Relation Manager?
FilamentFFilament / ❓┊help
8mo ago
Relation manager custom action + Spatie media library plugin
FilamentFFilament / ❓┊help
2y ago
Spatie Media Library
FilamentFFilament / ❓┊help
10mo ago
Spatie Media Library
FilamentFFilament / ❓┊help
14mo ago