WebKit2.FileChooserRequest.prototype.get_mime_types
function get_mime_types(): Array(String) { // Gjs wrapper for webkit_file_chooser_request_get_mime_types() }
Get the list of MIME types the file chooser dialog should handle, in the format specified in RFC 2046 for "media types". Its contents depend on the value of the 'accept' attribute for HTML input elements. This function should normally be called before presenting the file chooser dialog to the user, to decide whether to allow the user to select multiple files at once or only one.
- Returns
a null-terminated array of strings if a list of accepted MIME types is defined or null otherwise, meaning that any MIME type should be accepted. This array and its contents are owned by WebKitGTK+ and should not be modified or freed.