'Allow file explorer in Microsoft.Web.WebView2.WinForms.WebView2
I have a Winforms app with a webview but the file explorer do not open when fired inside the webview (works fine on browser) i alredy tried the following :
Dim oEnvironment As Microsoft.Web.WebView2.Core.CoreWebView2Environment
Dim opts As CoreWebView2EnvironmentOptions = New CoreWebView2EnvironmentOptions()
'opts.AdditionalBrowserArguments = "--allow-file-access-from-files"
opts.AdditionalBrowserArguments = "--disable-web-security"
oEnvironment = Await Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateAsync(String.Empty, System.IO.Path.GetTempPath(), opts)
Await browser.EnsureCoreWebView2Async(environment:=oEnvironment)
The page do nor return any error.
How can i give permissions to open that?
Update:
I have a file picker like this below, if i drag and drop the files it works, if i click "Browse" nothing appen in the webview (on browser all woks fine)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

