MicrosoftEdge / MicrosoftEdge/WebView2Feedback
How to catch FilePicker dialogs?
@Lakshmisha-KS is already working on this.
Since Mar 3, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
We would like to catch an event when a user opens a Filepicker dialog. For example we would like to use WebView2 in our Kiosk application. The user is able to plugin a USB drive and then get's the rights to upload a file using this HTML:
<input type="file" id="myFile" name="filename">
Now this opens up the default Win32 OpenFileDialog, giving the user access to the whole system. This isn't something we want so we want to display our own FilePicker we created (which is also touch friendly) instead of the Win32 version. With CefSharp an event get's raised when a OpenFileDialog is requested. Is there a similar event in CoreWebView2 we can use?
Already tried all the current available events but can't seem to find one for this feature.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.