diff --git a/src/ios/CDVFileTransfer.m b/src/ios/CDVFileTransfer.m index aa60c52..ee32b92 100644 --- a/src/ios/CDVFileTransfer.m +++ b/src/ios/CDVFileTransfer.m @@ -631,9 +631,7 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream) delegate.backgroundTaskID = UIBackgroundTaskInvalid; } - if (self.direction == CDV_TRANSFER_DOWNLOAD) { - [self removeTargetFile]; - } + [self removeTargetFile]; } - (void)cancelTransferWithError:(NSURLConnection*)connection errorMessage:(NSString*)errorMessage