MicrosoftEdge / MicrosoftEdge/WebView2Feedback

ICoreWebView2UploadStartingEventHandler

Open
#2,667 10 comments 0 reactions 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

doc feature request priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

The current webview have
ICoreWebView2DownloadStartingEventHandler.

Theoretically, ICoreWebView2UploadStartingEventHandler should not be required since the webview is in the same computer as user do download. Am i understand this right?

However, we would rather have same consistency of webview deployment and web browser without touching the HTML/JS code.
Otherwise, the upload procedure for webview need to call by different interface Js code.

Does this API already exist in another WebView-like product? (CEF, WebBrowser, etc.)

Yes
virtual CefRefPtr GetDialogHandler() { return nullptr; }
can be used for intercepting before-uploading event. (not to be confused with ClientHandler::OnBeforeDownload)

Details showing the usage/consumption of the proposed new API, and alternatives (e.g. not having this API).

I used ExecuteScript with Blob Base64 string to the Js' DataTransfer object which send to html element.

AB#40880038

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.