mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
Construct proper FileEntry with nativeURL property set
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user