Construct proper FileEntry with nativeURL property set

This commit is contained in:
Vladimir Kotikov
2014-09-12 12:08:16 +04:00
parent 2b86a85c74
commit 223191f9bc
+6 -2
View File
@@ -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,