Ronquam
Ronquam

Reputation: 145

Read content of a local file with chrome extension

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

Answers (1)

WhiteFangs
WhiteFangs

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

Related Questions