© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
joao nivaldo

Upload does not send file larger than 12 megabytes

Hello. I'm using the File Upload component and even though my PHP.ini is releasing 512 megas and I set the maxSize to 50000 when I try to send any file larger than 12 megas it gives me an error saying that this is the limit. Does anyone know how I solve this? Thanks.
Section::make('Documento')
  ->description('São suportados arquivos nos formatos: PDF, ZIP, JPG e PNG. Tamanho máximo de 50MB.')
  ->schema([            FileUpload::make('filename')                    ->label('Arquivo')                
  ->disk('public')                    
  ->directory('documentos' . now()->format('Y/m/d'))
  ->storeFileNamesIn('original_name')
  ->previewable(false)
  ->downloadable()
  ->acceptedFileTypes(['application/pdf', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed', 'image/jpeg', 'image/png'])
  ->maxSize(50000),
])
Section::make('Documento')
  ->description('São suportados arquivos nos formatos: PDF, ZIP, JPG e PNG. Tamanho máximo de 50MB.')
  ->schema([            FileUpload::make('filename')                    ->label('Arquivo')                
  ->disk('public')                    
  ->directory('documentos' . now()->format('Y/m/d'))
  ->storeFileNamesIn('original_name')
  ->previewable(false)
  ->downloadable()
  ->acceptedFileTypes(['application/pdf', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed', 'image/jpeg', 'image/png'])
  ->maxSize(50000),
])


php.ini:
display_errors = Off
max_execution_time = 60
max_input_time = 60
max_input_vars = 1000
memory_limit = 512M
post_max_size = 516M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php83"
upload_max_filesize = 512M
zlib.output_compression = Off
php.ini:
display_errors = Off
max_execution_time = 60
max_input_time = 60
max_input_vars = 1000
memory_limit = 512M
post_max_size = 516M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php83"
upload_max_filesize = 512M
zlib.output_compression = Off
image.png
Solution
I found the problem. It was a Liviwire limitation that by default limits uploads to 12 megabytes. I increased this value in liviwire.php in the config folder and everything was fine. Sent correctly. Thank you very much.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Uploads Larger Than 16MB
FilamentFFilament / ❓┊help
2y ago
File upload does not look like the docs.
FilamentFFilament / ❓┊help
3y ago
File upload not returning url after upload
FilamentFFilament / ❓┊help
3y ago
Spatie Media Library File Upload::getUploadedFileUsing does not exist.
FilamentFFilament / ❓┊help
3y ago