422 Error with FileUpload

When I try to change the maxSize of the FileUpload to 600mb using "600000" the component return me an error 422 with this message "The files.0 must not be greater than 51200 kilobytes.". Thanks in advance!
8 Replies
toeknee
toeknee2y ago
Are you sure you as passing it as an integer? if you DD on the self::max_filesize what do you get?
sergiogmr
sergiogmrOP2y ago
yes to debug i hardcode it and the same error even more, i can take out the "maxSize" and still the same error 😩 and yes is an integer
sergiogmr
sergiogmrOP2y ago
Dan Harrin
Dan Harrin2y ago
publish the livewire config & increase the max size
sergiogmr
sergiogmrOP2y ago
u are awesome i totally forget this configuration thanks so much
Alejandro
Alejandro2y ago
Hi I'm facing the same issue, and don't know where should I increase the max size in livewire config
toeknee
toeknee2y ago
IT explains it for you, look at the rules section change it to: ['required', 'file', 'max:12288']
Alejandro
Alejandro2y ago
Ah, wasn't sure if was it or there was another option like 'max_upload_size'. Thank you!
Want results from more Discord servers?
Add your server