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
4 Replies
?
What about using ->acceptedFileTypes([]) to force the browser to show only csv files when browsed ?
Did ->rules() work?
Yes works..BTW i also use acceptedFileTypes...seems not working..anyhow..Let the livewire handle it...thank u