Files
Oliver Dunk 0aa6d711a0 Add File Handling API / file_handlers sample (#1024)
* Initial file_handlers demo

* Fix code and update README with correct UI text

* Update README with screenshot

* Add minimum_chrome_version field

* Apply suggestions from code review

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Joe Medley <jmedley@google.com>

---------

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
Co-authored-by: Joe Medley <jmedley@google.com>
2023-11-01 19:49:32 +00:00

17 lines
383 B
JSON

{
"name": "File Handling Demo",
"version": "1.0",
"minimum_chrome_version": "120",
"description": "Shows how to use the file_handlers manifest key with the web platform's Launch Handler API.",
"manifest_version": 3,
"file_handlers": [
{
"name": "TXT file",
"action": "/view-file.html",
"accept": {
"text/plain": [".txt"]
}
}
]
}