I am trying to upload a file with livewire trait already added everything working fine…but the problem is when i select a file wire:model send a request to make temp url for livewire if the file size is high that request took too long to complete then if the user click submit bcz at that time livewire didnt create any temp url mean no file it says field is required mean validation run…what i want to do is to validate as soon as user select file before livewire send request for temp url…so is there any solution for it…
on local as soon as i select file it send request if its large it shows
The content may not be greater than 12288 kilobytes.
Dont know from where does this msg come from but its not showing in live site i am using LAMP on Digital ocean
public $content;
public function updatedContent()
{
$this->validate([
'content' => 'required|max:2048',
]);
}
submitFunction()
$this->validate(['content' => 'required|max:2048',],$customMessages);
The size of this file was 3MB.
livewire v-1.3