cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [3/6] cordova-plugin-file-transfer git commit: CB-8583 Forces download to overwrite existing target file
Date Thu, 09 Apr 2015 23:13:50 GMT
CB-8583 Forces download to overwrite existing target file


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/918b2cf8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/918b2cf8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/918b2cf8

Branch: refs/heads/old-ID
Commit: 918b2cf8d2ed3803c16bcf9692b84f77f24cd540
Parents: 6ed66a4
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Wed Apr 1 13:58:40 2015 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Thu Apr 2 13:43:07 2015 +0300

----------------------------------------------------------------------
 src/windows/FileTransferProxy.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/918b2cf8/src/windows/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/FileTransferProxy.js b/src/windows/FileTransferProxy.js
index 3dcf29e..e7eabdb 100644
--- a/src/windows/FileTransferProxy.js
+++ b/src/windows/FileTransferProxy.js
@@ -275,7 +275,7 @@ exec(win, fail, 'FileTransfer', 'upload',
         fileTransferOps[downloadId] = new FileTransferOperation(FileTransferOperation.PENDING,
null);
 
         var downloadCallback = function(storageFolder) {
-            storageFolder.createFileAsync(fileName, Windows.Storage.CreationCollisionOption.generateUniqueName).then(function(storageFile)
{
+            storageFolder.createFileAsync(fileName, Windows.Storage.CreationCollisionOption.replaceExisting).then(function(storageFile)
{
 
                 // check if download isn't already cancelled
                 var downloadOp = fileTransferOps[downloadId];


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message