This page is part of the documentation for the Chrome Apps platform, which was deprecated in 2020. Chrome Apps in Kiosk Mode used by Enterprise and Education customers will no longer be supported after April 2027, marking their end of life. Additionally, all remaining Chrome Apps used in managed environments by Enterprise and Education organizations will reach their end of life in October 2028. Learn more about migrating your app.
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
Used by packaged apps to specify what types of files the app can handle. An app can have
multiple file_handlers, with each one having an identifier, a list of MIME types and/or a list of
file extensions that can be handled. The app can handle a file if it either has a matching file
extension or has a matching MIME type. The app can also handle directories if include_directories
is set. You can use a wildcard "*" in types or extensions to indicate that the app can handle
any file type or "_type_/*" in types to indicate that the app can handle any file with a MIME
type of _type_. Here's an example of specifying file handlers:
To handle files or directories, apps also need to declare the fileSystem permission. Apps can
then be passed files or directories in the app.runtime.onLaunched event - either from the
system file manager (currently supported on ChromeOS only) or by providing a path on the command
line.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2013-05-11 UTC."],[],[]]