CSV file Validation

Validating a csv file not working...

Forms\Components\FileUpload::make('upload')
->rules([File::types(['csv'])])
->acceptedFileTypes(['text/csv','csv', 'text/plain'])

Livewire config is:

'rules' => ['file', 'mimes:text/csv,text/plain,csv,png,jpg,jpeg', 'max:12288'],


Forms\Components\FileUpload::make('upload')
->rules([File::types(['csv'])])

none of these works
test.jpg
Was this page helpful?