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
No description
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
2 Replies
Solution
joao nivaldo
joao nivaldo10mo ago
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.
joao nivaldo
joao nivaldoOP10mo ago
Laravel
File Uploads | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Want results from more Discord servers?
Add your server