Repository: cordova-plugin-file-transfer Updated Branches: refs/heads/master 3ae73a287 -> 6e960b2ff
CB-9969 Filetransfer upload error deletes original file Reverts iOS changes Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/6e960b2f Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/6e960b2f Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/6e960b2f Branch: refs/heads/master Commit: 6e960b2ffd16ba86ffbe8a94fa3e58526be473fc Parents: 3ae73a2 Author: daserge <[email protected]> Authored: Fri Nov 27 10:53:34 2015 +0300 Committer: daserge <[email protected]> Committed: Fri Nov 27 10:53:34 2015 +0300 ---------------------------------------------------------------------- src/ios/CDVFileTransfer.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/6e960b2f/src/ios/CDVFileTransfer.m ---------------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
