From ecaf989178ccddd0546b2089328636dbe19b45af Mon Sep 17 00:00:00 2001 From: dinitri Date: Tue, 10 Sep 2024 14:27:00 +0400 Subject: [PATCH] use nativeURL --- www/FileTransferManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/FileTransferManager.js b/www/FileTransferManager.js index bd5d9aba..6230bb91 100755 --- a/www/FileTransferManager.js +++ b/www/FileTransferManager.js @@ -51,7 +51,7 @@ FileTransferManager.prototype.startUpload = function (payload) { var self = this window.resolveLocalFileSystemURL(payload.filePath, function (entry) { - payload.filePath = new URL(entry.toURL()).pathname.replace(/^\/local-filesystem/, '') + payload.filePath = new URL(entry.nativeURL).pathname.replace(/^\/local-filesystem/, '') exec(self.callback, null, 'FileTransferBackground', 'startUpload', [payload]) }, function () { self.callback({ id: payload.id, state: 'FAILED', error: 'File not found: ' + payload.filePath })