Retry upload in case of error