F
Filamentβ€’2mo ago
explosiboo

ImportAction - file size validation error - Need to increase maxSize limit

Hey everyone! πŸ‘‹ I'm having trouble with file size validation when importing a CSV file using Filament's ImportAction. Here's my setup: My current ImportAction configuration: phpImportAction::make() ->label('Importar') ->color('primary') ->importer(BookImporter::class) ->headerOffset(0) ->csvDelimiter(',') The issue: I'm trying to upload a 17.5MB CSV file Getting "validation.max.file" error during upload My PHP settings are already configured: post_max_size = 120M and upload_max_filesize = 100M What I've tried: Verified PHP configuration is correct File uploads fine in other parts of the application The error seems to be coming from Filament's own validation Any help would be appreciated! πŸ™
No description
Solution:
check this
Laravel
File Uploads | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreiraβ€’2mo ago
check this
Laravel
File Uploads | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
explosiboo
explosibooOPβ€’2mo ago
Thank you so much for your help! πŸ™ I managed to solve it by publishing the configuration file and increasing the default values. Your guidance really helped me understand where to look. Have a great day and thanks again for taking the time to help me out! php artisan livewire:publish --config 'temporary_file_upload' => [ 'rules' => ['required', 'file', 'max:202400'],
No description

Did you find this page helpful?