IWebViewSelectLocalFiles EventAwesomium.NET 1.7.6Awesomium.NET
Occurs when the page requests to display a file chooser dialog. This is usually the result of a user clicking on an HTML input element with type='file'.

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 1.7.6.0
Syntax

event FileDialogEventHandler SelectLocalFiles

Value

Type: Awesomium.CoreFileDialogEventHandler
Remarks

Default Handling

The table below presents the way the SelectLocalFiles event is handled, when Handled is set to Default (default):
Wrapper Behavior
WebView No default handling is provided for the windowless WebView. If Handled is set to Default (default), the event is immediately canceled.
Technology specific WebControls. If Handled is set to Default (default), controls will display their predefined dialog.

Application Handling

Applications can handle the SelectLocalFiles event either modally or non-modally. Only default or modal handling is officially supported by Awesomium.NET.

The table below shows the methods of handling the SelectLocalFiles event:

Setting Handling
Modal Developers should provide a response through the SelectedFiles or SelectedFile property, before the event handler exits.
NotModal (Not officially supported by Awesomium.NET) No response will be provided for the request. Developers should later provide a response themselves using DidChooseFiles(String, Boolean).
Caution note Caution
This technique is not officially supported by Awesomium.NET. Therefore, the above IWebView member, is not directly available through the predefined IWebView wrappers. You will have to cast the wrapper to IWebView, to access these members.
Caution note Caution
If you set Handled to NotModal, you should make sure that you always call DidChooseFiles(String, Boolean) providing a response to the event. No new SelectLocalFiles events will occur, until a response has been provided for the last one.
Note Note
Note that Cancel always takes precedence over Handled. If Cancel is set to true, the request will be canceled immediately and the value of Handled (or of any other member), is ignored.
See Also

Reference