From 223191f9bc6083abfe84dfca6e1e6fc0fa5a5f8f Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Fri, 12 Sep 2014 12:08:16 +0400 Subject: [PATCH] Construct proper FileEntry with nativeURL property set --- src/windows/FileTransferProxy.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/windows/FileTransferProxy.js b/src/windows/FileTransferProxy.js index 2523c81..0eeef90 100644 --- a/src/windows/FileTransferProxy.js +++ b/src/windows/FileTransferProxy.js @@ -229,8 +229,12 @@ exec(win, fail, 'FileTransfer', 'upload', currentDownloadOp.promise = null; } - successCallback && successCallback(new FileEntry(storageFile.name, storageFile.path)); - }, function (error) { + var nativeURI = storageFile.path.replace(Windows.Storage.ApplicationData.current.localFolder.path, 'ms-appdata:///local') + .replace(Windows.Storage.ApplicationData.current.temporaryFolder.path, 'ms-appdata:///temp') + .replace('\\', '/'); + + successCallback && successCallback(new FileEntry(storageFile.name, storageFile.path, null, nativeURI)); + }, function(error) { var result; // Handle download error here. If download was cancelled,