update the progress bar when uploading