Hi everyone.
I do not see a way to limit upload size for multiple files. Non of the option from documentation is working.
Rule “max” is referring to number of files:
$this->validate([
'files' => 'max:1',
]);
Validation with asterix like following seems not to influence anything:
$this->validate([
'files.*' => 'max:1',
]);
Global configuration of config/livewire.php
has no effect either:
'temporary_file_upload' => [
'rules' => 'file|mimes:png,jpg,pdf,doc,docx,docm,xls,xlsx,xlsm|max:1',
],
Do I miss anything? It seems to be a bug or a big limitation.