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

fixed file-sharing for electron > 31 #522

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

rafapaezbas
Copy link
Contributor

@rafapaezbas rafapaezbas commented Jan 3, 2025

The upcoming release of platform (1.9) includes the upgrade of the electron runtime to version 33. Since version 32, the file objects in the html input with type file does not include the path of the file. So the preload (which has access to the right context to read a file path) exposes the getPathForFile from the webUtils.

See: https://www.electronjs.org/blog/electron-32-0 and https://github.com/electron/electron/pull/42053/files

@rafapaezbas rafapaezbas force-pushed the fix-electron-33-file-sharing branch from f21ec80 to d3456ce Compare January 3, 2025 16:35
@rafapaezbas rafapaezbas merged commit 588605b into main Jan 3, 2025
3 checks passed
@rafapaezbas rafapaezbas deleted the fix-electron-33-file-sharing branch January 3, 2025 21:41
rafapaezbas added a commit that referenced this pull request Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant