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
BloodDrunk
BloodDrunk5mo ago
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
toeknee
toeknee5mo ago
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.
BloodDrunk
BloodDrunk5mo ago
nicee that actually works, sweet shit!
toeknee
toeknee5mo ago
to be safe you could do: !empty($get()) Im suppose too.
Want results from more Discord servers?
Add your server