© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
2 replies
Stijn Jansen

Error saving media file with spatie-laravel-media-library-plugin

Hi, I have installed the spatie-laravel-media-library-plugin plugin in my project. I've done the setup following the instructions of the plugin. However, when trying to save a image in below input I get an error which I can't seem to figure out.

SpatieMediaLibraryFileUpload::make('featured_image')
->label('Featured Image')
->collection('pages')
->disk('public')
->image()
->imageEditor()

Error: array_keys(): Argument #1 ($array) must be of type array, Livewire\Features\SupportFileUploads\TemporaryUploadedFile given
It seems to be coming from vendor/filament/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryFileUpload.php:254

Does anyone had this before or maybe know whta could be the issue here? Thanks!
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-laravel-media-library-plugin events ?
FilamentFFilament / ❓┊help
3y ago
filament spatie media library plugin
FilamentFFilament / ❓┊help
13mo ago
Spatie Laravel Media Library general question
FilamentFFilament / ❓┊help
11mo ago
spatie-laravel-media-library-plugin creates Media model and then deletes afterwards
FilamentFFilament / ❓┊help
3y ago