© 2026 Hedgehog Software, LLC

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

FileUpload String saved

Forms\Components\FileUpload::make('thumbnail')
                                ->label('image')
                                ->acceptedFileTypes(['image/*'])
                                ->directory('opportunity_images')
                                ->storeFileNamesIn('original_filename'),
Forms\Components\FileUpload::make('thumbnail')
                                ->label('image')
                                ->acceptedFileTypes(['image/*'])
                                ->directory('opportunity_images')
                                ->storeFileNamesIn('original_filename'),

how do i save the image string without it saving as "opportunity_images/ ... "
Solution
Can you remove the prefix when you are getting the value from the database? Does it impact other parts of the app to have the prefix in the DB?
Jump to solution
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

FileUpload as Base64 String
FilamentFFilament / ❓┊help
2y ago
Show preview of already saved image in FileUpload
FilamentFFilament / ❓┊help
5mo ago
FileUpload file saved with encrypted name, preview with original name
FilamentFFilament / ❓┊help
3y ago
fileupload
FilamentFFilament / ❓┊help
2y ago