Fileupload Maxsize not working?

Today I was testing some file uploads with max file sizes, and of course the server responded with a "413(Payload Too Large)". So I implemented a 12mb max upload size ->maxSize(12288). But when I tested it a again it seemed as if the validation didn't even happen, the fileuploader got stuck again and the server returned the same 413 error.

I've also tried to add ->live() which didnt work. I've tried to updating the max upload size in the livewire config, didn't work either. Furthermore I have the maxuploadsize defined as php.ini is 100m

I have a feeling it might have something to do I'm handling the upload in the ->afterStateUpdated(function (?Model $record) { //code }). But even then I would just expect it to show a error to the user that the max filesize is X amount.

Is it a bug that the validation is not working or am I missing something?
Solution
The fact it says payload is the indicator it's server side
Was this page helpful?