© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
JonVonWeston

spatie media library - multiple image fields on a resource

Good morning folks - a newbie question so apologies.

I have a product resource that I need to have an icon, a preview image and a gallery of images - I though that the spatie media library would enable me to do this - in my resource form schema I have the following

Forms\Components\Tabs\Tab::make('Images')
->schema([
SpatieMediaLibraryFileUpload::make('preview'),
SpatieMediaLibraryFileUpload::make('icon'),
SpatieMediaLibraryFileUpload::make('images')
->multiple()
]),

However, when I upload an image into the preview 'panel', the image is then replicated across the other File uploads - its as if they are not being treated as seperate fields. What am I doing wrong?

Any advice would be greatfully received

Jon
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

Spatie Media Library outside a Resource
FilamentFFilament / ❓┊help
3y ago
Spatie Media Library blurred image preview
FilamentFFilament / ❓┊help
10mo ago
Spatie Media Library - Image Preview Layout
FilamentFFilament / ❓┊help
2y ago
Replicate images - Spatie Media Library Image
FilamentFFilament / ❓┊help
3y ago