Does FileUpload have a started/finished upload event of any kind?
I would like to disable the submit button until the upload has completed. I looked through the documentation and did not see any type of event that happens during the file upload process.
4 Replies
bump
I want to display a component in a form builder when the file upload is complete
I know there is AfterStateUpdated, but I dont know how to use it to toggle visibility of a component
So on the field you want to show after upload:
->live()
->visible(fn($get) => $get('my_upload_field_name'))
and add ->live() to the upload field too.
nicee that actually works, sweet shit!
to be safe you could do: !empty($get()) Im suppose too.