Hey guys,
After I select an image (type=‘file’) and click the submit button I get the message “The image field is required.” I have to wait a few seconds, then I can send it, and it works perfectly.
How can I control this?
Hey guys,
After I select an image (type=‘file’) and click the submit button I get the message “The image field is required.” I have to wait a few seconds, then I can send it, and it works perfectly.
How can I control this?
Hey, @mflorindo
Can you show us your code implementation?
It may be from the internet connection because you are using wire:model="image
or wire:model.lazy="image"
…
After you a file it takes some time to get uploaded. What you can do is to show the upload progress to the user and disable the submit button unless the file has been uploaded.
You ca use wire:loading.attr="disabled"
to disable the button and target the file loading with wire:target="file"