In my app, I use file upload and picture upload inputs. The user clicks on the input and selects their file. Then they click an “upload” button that I created which makes the right changes to the database.
The problem I’m having is that, when a user selects their file, it takes a few seconds for the file to load up into the input and they can’t click “upload” until that happens. If the file is large, they sit there with no input until the text in the input box changes to the file name for 5 or so seconds. I want to add a loading animation, but I can’t find a way to trigger a workflow for when a user selects a file.