i/o file in chrome extension

409 views
Skip to first unread message

Reky Susanto

unread,
May 17, 2016, 12:43:33 AM5/17/16
to Chromium-Extensions-Announce

Hello, help me!
i have question, How to use module firefox (io/file) in chrome extension or what module same like it in chrome extension?

thanks before smile emoticon

Antony Sargent

unread,
May 17, 2016, 12:56:47 PM5/17/16
to Reky Susanto, Chromium-Extensions-Announce
Chrome extensions don't have access to the OS native filesystem, but there are a few alternatives depending on your use case. First, they can use file drag-and-drop just like any web page. If you just need to store some data, we provide a simple key/value store in both synced and unsycned flavors via the chrome.storage API. You can also use a private sandboxed filesystem in an extension the same way you can with a normal webage (see http://www.html5rocks.com/en/tutorials/file/filesystem/ for more info), or other storage technologies like indexedDb

Chrome packaged apps can get limited access to the OS native filesystem via the chrome.fileSystem API, moderated by some security protections such as the user using a file picker. Packaged apps can also store data in app-specific silos in Google Drive via the chrome.syncFileSystem API. 



--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/c4d195f1-9557-43c8-a1d5-92ce3b5a68f5%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Reply all
Reply to author
Forward
0 new messages