web-applicationshtmlairlocal-storagegoogle-gears

Accessing Local Files From Web Application


I am looking into if it is possible to have a web application access local files. The application would be akin to a word processor metaphor, making the opening/saving of local files very direct on the user's part -- they would be requesting a specific file be opened or saved to a specific location.

I've read some that Google Gears might have allowed this. But if I remember correctly, I also read that Google discontinued development of Gears.

I've also read somewhere that Adobe Air allows this. I've not Air though.

My hope is provide a common editing tool that can access local files stored in a version control system. The user would have local control of checking in/out and would use the edit tool (available on the corporate web) to open those files. They'd modify it, save it back to the local directory and then locally check it back in.

Thanks for any tips!


Solution

  • Do you want real file processing or the metaphor of file load/save? Only a few browsers support real file processing beyond traditional <input type="file" /> upload and hyperlink download. With plug-ins like Silverlight, you can do better but you have to rely on plug-ins.

    If you just want the metaphor, you can save your data to localStorage or database and show the metaphor to user. It will be easier and every modern browser supports this.