We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d03e7a commit ecaf989Copy full SHA for ecaf989
www/FileTransferManager.js
@@ -51,7 +51,7 @@ FileTransferManager.prototype.startUpload = function (payload) {
51
52
var self = this
53
window.resolveLocalFileSystemURL(payload.filePath, function (entry) {
54
- payload.filePath = new URL(entry.toURL()).pathname.replace(/^\/local-filesystem/, '')
+ payload.filePath = new URL(entry.nativeURL).pathname.replace(/^\/local-filesystem/, '')
55
exec(self.callback, null, 'FileTransferBackground', 'startUpload', [payload])
56
}, function () {
57
self.callback({ id: payload.id, state: 'FAILED', error: 'File not found: ' + payload.filePath })
0 commit comments