Skip to content

Commit

Permalink
use nativeURL
Browse files Browse the repository at this point in the history
  • Loading branch information
dinitri committed Sep 10, 2024
1 parent 1d03e7a commit ecaf989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/FileTransferManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit ecaf989

Please sign in to comment.