use upload.onload instead of success to set progress bar to 100%