Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

gzdunek
Copy link
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
41 checks passed
@gzdunek gzdunek deleted the gzdunek/electron-file-path branch October 1, 2024 09:04
@public-teleport-github-review-bot

@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