Skip to content

Take the file path from webUtils.getPathForFile instead of File.path#46971

Merged
gzdunek merged 1 commit intomasterfrom
gzdunek/electron-file-path
Oct 1, 2024
Merged

Take the file path from webUtils.getPathForFile instead of File.path#46971
gzdunek merged 1 commit intomasterfrom
gzdunek/electron-file-path

Conversation

@gzdunek
Copy link
Copy Markdown
Contributor

@gzdunek gzdunek commented Sep 30, 2024

Closes #46889

Starting from Electron 32, File.path was removed (unfortunately it's still in Electron types). We need to expose webUtils.getPathForFile from the preload script to read the filepath and then pass it to tsh.

Changelog: Fixed the "source path is empty" error when attempting to upload a file in Teleport Connect

@gzdunek gzdunek added this pull request to the merge queue Oct 1, 2024
Merged via the queue into master with commit 8af24ee Oct 1, 2024
@gzdunek gzdunek deleted the gzdunek/electron-file-path branch October 1, 2024 09:04
@public-teleport-github-review-bot
Copy link
Copy Markdown

@gzdunek See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Failed
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Teleport Connect v16.4.0 file upload fails with error "source path is empty"

3 participants