Upload file with node

Hello actually when i am trying to upload my file to server i added a event listener to show progress bar but the problem is after my file is reached to server it show :100:%done but it yet to be uploaded to aws cloud so it take another time how can i make a progress bar according to accountability of both