Hello, I'm looking for advice on what I believe is a timing issue on a form button. My form has data and a file upload, each of which use separate events to upload the file and send the form data (both to external api endpoints). The form data references the filename for later id in the backend, but sometimes the form data has 1234.pdf (correct) and sometimes it has 1234.2. The file uploaded ultimately has the correct filename and extension. Is there a way I can do uploadfile.trigger() and wait for it to complete before doing sendFormData.trigger()?
Thanks for any help.
