CB-6106: Ensure that nativeURL is used by file transfer download

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

Branch: refs/heads/master
Commit: ed24e210f4d781db17861319e9daa3ad89c9bd95
Parents: 0779c71
Author: Ian Clelland <[email protected]>
Authored: Thu Feb 27 16:40:32 2014 -0500
Committer: Ian Clelland <[email protected]>
Committed: Thu Feb 27 16:40:32 2014 -0500

----------------------------------------------------------------------
 www/FileTransfer.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/ed24e210/www/FileTransfer.js
----------------------------------------------------------------------
diff --git a/www/FileTransfer.js b/www/FileTransfer.js
index fb3ff24..d842c5a 100644
--- a/www/FileTransfer.js
+++ b/www/FileTransfer.js
@@ -185,6 +185,7 @@ FileTransfer.prototype.download = function(source, target, 
successCallback, erro
             entry.name = result.name;
             entry.fullPath = result.fullPath;
             entry.filesystem = new FileSystem(result.filesystemName || 
(result.filesystem == window.PERSISTENT ? 'persistent' : 'temporary'));
+            entry.nativeURL = result.nativeURL;
             successCallback(entry);
         }
     };

Reply via email to