Stay organized with collections
Save and categorize content based on your preferences.
The "file_handlers" manifest key specifies file types to be handled by a ChromeOS extension. To process a file, use the web platform's Launch Handler API. For extension specific information, see File Handling.
Specifies an HTML file to show when a file is opened. The file must be within your extension. Processing the file, whether it's displayed or used in some other way, is done with JavaScript using appropriate web platform APIs. This code must be in a separate JavaScript file included via a <script> tag.
"name" (string, required)
A user friendly description of the action.
"accept" (dictionary, required)
The file types that can be processed by the page specified in "action". The items in the dictionary are a key/value pair where the key is a MIME type and the value is an array of file extensions. Only known MIME types are allowed for the key. Custom file types are allowed but the key for a custom type must be a known MIME type, and the mapping between the MIME type and the custom file type must be supported by the underlying operating system.
"launch_type" (object, optional)
Specifies whether multiple files should be opened in a single client or multiple clients. Valid values are "single-client" and "multiple-clients". The default value is "single-client".