Added a check for upload status.