Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access local file system from WebKit browsers using JavaScript?

I am using WebKit to rendering my HTML pages. Now, say I am browsing the page, I select some text while reading and want to save/write down the selected text on my local file system. Is any way to access (read/write) local file system using WebKit?

In case of Firefox, I can access localfile using XPCOM, nsiFile. Can anyone suggest what I should use to do the same with WebKit?

like image 688
ganapati Avatar asked Apr 13 '10 05:04

ganapati


1 Answers

Have a look at the File API. Support will depend on which flavor of Webkit you're using, but the nightlies should have some support.

like image 116
miketaylr Avatar answered Oct 26 '22 14:10

miketaylr