How do I use Chrome Filesystem api to write to read/write from an user specified disk directory?
-
From http://developer.chrome.com/apps/fileSystem.html " Use the chrome.fileSystem API to create, read, navigate, and write to a sandboxed section of the user's local file system. With this API, Chrome Apps can read and write to a user-selected location. For example, a text editor app can use the API to read and write local documents. All failures are notified via chrome.runtime.lastError " Someone on SO seems to say that this is possible. http://stackoverflow.com/questions/19802032/how-can-a-chrome-extension-save-many-files-to-a-user-specified-directory But is it really possible? If so, do you have an example? Folks on StackOverflow booed me for this question however they didnt have an answer either?
-
Answer:
Depends on what you're building. If you're making a Chrome Extension, then no, you can't write to the filesystem. The best you can get is localStorage, which can be infinite, but extensions cannot manage the actual filesystem of the computer the browser is running on. However, if you're building a Chrome *APP*, then you can do it. It would be silly to attempt to paste the methods here. Instead, I'll link you to an excellent resource - I run a Google+ community on Chrome App and Extension development at http://gplus.to/chromedev. That community is ripe with experts in this area, including much of the actual Google team. We have many demos and tutorials on this exact topic, if you just search the community for the "filesystem" string like so: https://plus.google.com/u/0/communities/107816657013931145360/s/filesystem Give it a go, join us there, and if it's still unclear don't hesitate to repeat your question there.
Bruno Skvorc at Quora Visit the source
Related Q & A:
- How should I use Youtube API?Best solution by Stack Overflow
- How do I use "John et. al. 1990 " citation for more than two authors?Best solution by tex.stackexchange.com
- Where do I find my Yahoo briefcase and how do I use it?Best solution by Yahoo! Answers
- How do i remove attachments and photos after i have read my emails?Best solution by Yahoo! Answers
- How do I use chat when I am in a room?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.