MicrosoftEdge / MicrosoftEdge/WebView2Feedback
ICoreWebView2UploadStartingEventHandler
@Lakshmisha-KS is already working on this.
Since Feb 12, 2025.
- 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.
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.