FilamentF
Filament3y ago
Gush

FileUpload String saved

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?
Was this page helpful?