MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WebView2 and launching file dialog (WPF/C#)

Open
#2,849 6 comments 0 reactions 1 assignee View on GitHub

@victorhuangwq is already working on this.

Since Dec 1, 2023.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

We are using the latest stable version of WebView2 controls in a WPF/ C# application. We have a few web pages that are designed to upload files to our backend. The displayed webpages call a simple script, similar to what this webpage (https://output.jsbin.com/kimoqaw) does.

The link above is the perfect sample. It works in Edge on win 10 and win 11 (both buttons launch a file picker)
Using that link in the webview2 control - it works in Win11 and doesn't in Win 10?

This mimics what we are seeing in our application. These pages also support drag and drop, which does work on both. The only difference we can determine is Windows 10 vs 11 and it is consistent. Never works on Win 10, and always works on Win 11?

Is there something we need to do differently if we detect the machine is a windows 10 machine? Is there a setting or some kind of value we need to set when initializing the CoreWebView2 to allow these calls to work in both environments?

AB#41812660

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.