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
[Bug]: <input type="file"> is not showing dialog on click #42013
Comments
I believe you will need to use Electron Native API to read / write to show dialogs... This is executed in the main render, so you will need to use IPC to communicate between your render (HTML) and your main render (nodeJS)
|
@tufik2 But it was working from renderer before. |
Hi @staniel359, I created this test fiddle: https://gist.github.com/Kilian/f1566f60bd54ab1ca5dd8ed6887aa1d1 and it works fine for me on Ubuntu 23.04 on both electron 30.0.1 and 30.0.2. Does this example work for you? If it does, can you made a reduced fiddle showing the issue? |
I believe I have experienced this issue also. |
@staniel359 You'll get your issue resolved faster if you supplied a testcase. |
For example, this website: https://convertio.co/zh/ico-converter/ Its function is to upload. If you load this website in browserview and click the upload button on the website page, a file selection box will pop up. However, once you use WebContentsView to load the website and click the upload button on the page, there is no response. When can this bug be fixed? my os is win11 |
Looks like i fixed this incidentally to another bug: #41966. The PR has been backported to 30 already and will be out in the next patch release! |
Preflight Checklist
Electron Version
30.0.1
What operating system are you using?
Ubuntu
Operating System Version
22.04
What arch are you using?
x64
Last Known Working Electron version
29.3.0
Expected Behavior
Files dialog should open:
Actual Behavior
Doesn't:
Screencast from 01-05-24 12:24:10.webm
Testcase Gist URL
No response
Additional Information
I'm calling it from WebContentsView.
The text was updated successfully, but these errors were encountered: