WebKit2.FileChooserRequest.prototype.get_selected_files

function get_selected_files(): Array(String) {
    // Gjs wrapper for webkit_file_chooser_request_get_selected_files()
}
  

Get the list of selected files currently associated to the request. Initially, the return value of this method contains any files selected in previous file chooser requests for this HTML input element. Once webkit_file_chooser_request_select_files, the value will reflect whatever files are given.

This function should normally be called only before presenting the file chooser dialog to the user, to decide whether to perform some extra action, like pre-selecting the files from a previous request.

Returns

a null-terminated array of strings if there are selected files associated with the request or null otherwise. This array and its contents are owned by WebKitGTK+ and should not be modified or freed.