CB-9969 Filetransfer upload error deletes original file

Adds back the iOS check
This commit is contained in:
daserge
2015-11-30 11:03:10 +03:00
parent 6e960b2ffd
commit fe81475829
+3 -1
View File
@@ -631,7 +631,9 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream)
delegate.backgroundTaskID = UIBackgroundTaskInvalid;
}
[self removeTargetFile];
if (self.direction == CDV_TRANSFER_DOWNLOAD) {
[self removeTargetFile];
}
}
- (void)cancelTransferWithError:(NSURLConnection*)connection errorMessage:(NSString*)errorMessage