How do I correctly add a loading indicator when loading via API? When you click on the button, the event does not count as the file upload via php. Outputs the NaN value. I