I have used the async function and waiting for one API to hit and display its current file name which got uploaded then increase the counter I and go for the next file.