WebKit2.WebView::run-file-chooser
connect('run-file-chooser', function (webView, request: WebKit2.FileChooserRequest, ): Boolean);
This signal is emitted when the user interacts with a <input type='file' /> HTML element, requesting from WebKit to show a dialog to select one or more files to be uploaded. To let the application know the details of the file chooser, as well as to allow the client application to either cancel the request or perform an actual selection of files, the signal will pass an instance of the WebKit2.FileChooserRequest in the request argument.
The default signal handler will asynchronously run a regular Gtk.FileChooserDialog for the user to interact with.
- webView
instance of WebKit2.WebView that is emitting the signal
- request
- Returns
true to stop other handlers from being invoked for the event. false to propagate the event further.