progress bar for Upload, change the loop from 1 to 7