Fixed uploading's progressbar reseting to zero