Skip to content

Commit

Permalink
Merge pull request #12296 from giodi/patch-1
Browse files Browse the repository at this point in the history
Update CanImportRecords.php
  • Loading branch information
danharrin authored Apr 11, 2024
2 parents 0c5a5a5 + b396aec commit 35787e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/actions/src/Concerns/CanImportRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function setUp(): void
->label(__('filament-actions::import.modal.form.file.label'))
->placeholder(__('filament-actions::import.modal.form.file.placeholder'))
->acceptedFileTypes(['text/csv', 'text/x-csv', 'application/csv', 'application/x-csv', 'text/comma-separated-values', 'text/x-comma-separated-values', 'text/plain', 'application/vnd.ms-excel'])
->rule('extensions:csv')
->rule('extensions:csv,txt')
->afterStateUpdated(function (FileUpload $component, Component $livewire, Forms\Set $set, ?TemporaryUploadedFile $state) use ($action) {
if (! $state instanceof TemporaryUploadedFile) {
return;
Expand Down

0 comments on commit 35787e0

Please sign in to comment.