This is in my component:
public function updatedPhotosUp(){
//validazione
$this->validate([
'photosUp.*' => 'image|max:4096', // 4MB Max
]);
......
}
this my blade
If I load an image the event “livewire-upload-finish” is emitted and the message “Upload completato” is displaied.
If I load a text file, not an image, the validation not let to load the file BUT the event “livewire-upload-finish” is emitted.
I think the “livewire-upolad-error” event has to be emitted.
Laravel 7
Livewire 2.2.3
Thank you!
Marco