Upload limits can be set in many places, can you be more specific on what kind of error you get?
Via front end (javascript)
Via a Laravel validation rule, you will get a HTTP 422 response
PHP limits it via upload_max_filesize and post_max_size, verify if you set it correctly by dumping the values: dd(ini_get('upload_max_filesize'), ini_get('post_max_size'))
@thekoswog You can’t upload files that are larger than a few megabytes in size in one go, because you’ll either hit a memory limit or a timeout limit, no matter what you change your php.ini or server settings to be. There’s just no way to let a browser way an infinite amount of time, or read a file into more RAM that’s available.
Instead, you’ll need to upload the file into “chunks” from the browser, and then assemble the file server-side once all chunks have been sent. This is what services like S3 will do when uploading files that are multiple megabytes or even gigabytes in size.
@jlrdw I don't think it's mentioned specifically somewhere in their docs. I just remember painfully bumping into that number myself, a long time ago :)
@PovilasKorop Thank you Povilas. Was banging my head for a couple of hours, the debug mode is ON, maxfileupload is up, client body size is configured, Nginx conf is also configured for file size and still there was error, Your hint fixed it.
Status code gives 500 Error, it does not load, I think I do not know where to find the solution for this error is related to the script, but I need to be able to install it, I do not understand what to do, thank you very much for writing immediately to help
A helpful site, you are very good, thank you, I will write when the problem is solved, thank you again.
[2023-01-06 18:18:46] production.ERROR: File /tmp/phpEvFv4w has a size of 44.35 MB which is greater than the maximum allowed 10 MB {"userId":7,"exception":"[object] (Spatie\MediaLibrary\MediaCollections\Exceptions\FileIsTooBig(code: 0): File /tmp/phpEvFv4w has a size of 44.35 MB which is greater than the maximum allowed 10 MB at /var/www/vhosts/vawog.com/api.vawog.com/vendor/spatie/laravel-medialibrary/src/MediaCollections/Exceptions/FileIsTooBig.php:15)
I ran into the same error, and turns out it's the Livewire's config for temporary_file_upload that was limited to 12288KB. If someone is having the same issue, using Livewire (V3 in my case), this might be useful:
Publish the livewire config file:
php artisan livewire:publish --config
Update the temporary_file_upload rules - set the max value:
@thomas_rm Thanks! I am using Filament and Spatie Media Library. I had configured both of these to use a higher limit, but I was still getting an error due to the Livewire default limit.