Reputation: 145
I am developing an extension for the chrome browser. I use the KangoExtensions framework. The extension is written in JavaScript. I want to read the content of a file, which is located on the local filesystem. What is the easiest way to implement this?
Upvotes: 2
Views: 5573
Reputation: 704
If you already know the file's path in the filesystem you just need to add a permission to file://*
in your manifest file and make a GET XMLHttpRequest to the url file://{filepath}
.
Upvotes: 8