How to increase Max file upload size?
I am trying set file upload size limit to 800M.
But I am unable to upload a 750M file.
I am getting following error.
The mountedTableActionsData.0.download_url.d1b511bb-4c36-4261-8ea3-9389841af147 field must not be greater than 200000 kilobytes.
Please suggest.
20 Replies
I have the same error
It seems to be an issue with FileUpload component
Someone needs to report it on github
I fixed my issue by
php artisan vendor:publish --tag=livewire:config
in config/livewire.php
Ahh, I see. Thanks
what the hell? Yesterday it worked, today it doesnt
Am i still missing something?
what's the error?
In console:
What's the max size of the file you want upload? 800mb?
I want the max to be around 100mb, but I gave it 800 anyways just like you did
The file I uploaded is 56MB as you can see
WOW, wait
I figured it out
Its Octane's fault
For some reason it wont let me upload large files
plain serve works fine
Also remember Livewire has a maximum file upload in the Livewire config as well
don't upload such large files...if you really need it make a custom upload with chunks
there are settings to change that
How do I do that?
it depends on which engine you chose
Did you choose Swoole or Frankenphp?
swoole
Im pretty sure its an issue with swoole
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
I have this in my logs
[2024-11-17 09:37:46 #5311.0] WARNING Server::check_worker_exit_status(): worker(pid=5361, id=5) abnormal exit, status=0, signal=11
here is the full list of Swoole config options - https://openswoole.com/docs/modules/swoole-server/configuration#list-of-configurations
Open Swoole PHP
OpenSwoole Server Configuration | Open Swoole PHP
Documentation of Open Swoole, Open Swoole Wiki, Open Swoole Tutorial
but package_max_length limits your max upload size
Don't forget the Livewire upload limit as that is the one I ALWAYS forget 🙂
Thank you! 🙂
This worked
I realized that I actually did add this, I just forgot to increase the value of package_max_length 😅