add a progress bar for upload