DownloadAndUploadFile error handling