Subham
File type validation
can't we validate the file type like this when i upload the png i want validation error
FileUpload::make('slider_img1') ->label('Slider Image 1') ->acceptedFileTypes(['jpg', 'jpeg', 'png', 'gif']) ->required() ->disk('public') ->directory('slider_images') ->default(null),
FileUpload::make('slider_img1') ->label('Slider Image 1') ->acceptedFileTypes(['jpg', 'jpeg', 'png', 'gif']) ->required() ->disk('public') ->directory('slider_images') ->default(null),
3 replies