Open
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.