Skip to content

Commit ecaf989

Browse files
committed
use nativeURL
1 parent 1d03e7a commit ecaf989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/FileTransferManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ FileTransferManager.prototype.startUpload = function (payload) {
5151

5252
var self = this
5353
window.resolveLocalFileSystemURL(payload.filePath, function (entry) {
54-
payload.filePath = new URL(entry.toURL()).pathname.replace(/^\/local-filesystem/, '')
54+
payload.filePath = new URL(entry.nativeURL).pathname.replace(/^\/local-filesystem/, '')
5555
exec(self.callback, null, 'FileTransferBackground', 'startUpload', [payload])
5656
}, function () {
5757
self.callback({ id: payload.id, state: 'FAILED', error: 'File not found: ' + payload.filePath })

0 commit comments

Comments
 (0)