Why mine spatie library is not working

Hi everyone i have a problem with spatie, i followed the docs and i can not figure out why mine spatie librabry is not working I tried to upload file but it does not store into db. Down bellow is mine code and settings for spatie ---Form
SpatieMediaLibraryFileUpload::make('image')
->responsiveImages()
->conversion('thumb'),
SpatieMediaLibraryFileUpload::make('image')
->responsiveImages()
->conversion('thumb'),
---Mine Resource
public static function form(Form $form): Form
{
return $form
->schema([
Tabs::make()->schema(Testimonial::getForm())
])
->model(Testimonial::class)
->columns(1);
}
public static function form(Form $form): Form
{
return $form
->schema([
Tabs::make()->schema(Testimonial::getForm())
])
->model(Testimonial::class)
->columns(1);
}
---Mine model
class Testimonial extends Model implements HasMedia
{
use ImageTrait, ContentRestyleTrait, InteractsWithMedia;
class Testimonial extends Model implements HasMedia
{
use ImageTrait, ContentRestyleTrait, InteractsWithMedia;
3 Replies
mile4841
mile4841OP4mo ago
I succeeded to upload an image i removed from mine resource ->model() and remove ->responsiveImages() ->conversion('thumb'),
mile4841
mile4841OP4mo ago
But now mine problem is that i get the saved image without extension
No description
mile4841
mile4841OP4mo ago
this is what it saved in mine public/storage folder
No description
Want results from more Discord servers?
Add your server