mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-02-02 00:00:05 +08:00
@@ -90,6 +90,9 @@ exec(win, fail, 'FileTransfer', 'upload',
|
||||
// Handle 'ms-appdata' scheme
|
||||
filePath = filePath.replace('ms-appdata:///local', appData.localFolder.path)
|
||||
.replace('ms-appdata:///temp', appData.temporaryFolder.path);
|
||||
} else if (filePath.indexOf('cdvfile://') === 0) {
|
||||
filePath = filePath.replace('cdvfile://localhost/persistent', appData.localFolder.path)
|
||||
.replace('cdvfile://localhost/temporary', appData.temporaryFolder.path);
|
||||
}
|
||||
// normalize path separators
|
||||
filePath = cordovaPathToNative(filePath);
|
||||
@@ -259,6 +262,9 @@ exec(win, fail, 'FileTransfer', 'upload',
|
||||
// Handle 'ms-appdata' scheme
|
||||
target = target.replace('ms-appdata:///local', appData.localFolder.path)
|
||||
.replace('ms-appdata:///temp', appData.temporaryFolder.path);
|
||||
} else if (target.indexOf('cdvfile://') === 0) {
|
||||
target = target.replace('cdvfile://localhost/persistent', appData.localFolder.path)
|
||||
.replace('cdvfile://localhost/temporary', appData.temporaryFolder.path);
|
||||
}
|
||||
target = cordovaPathToNative(target);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user