Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Depending on what you need to do with the cached files, you could simply use the FileIO API to save the binary to your extension's sandbox environment. Just storing the filepath to the original file probably won't work as the API can only read within it's sandbox [unless your choosing the files yourself through an input].</p> <p>If necessary, you can add the "unlimitedStorage" Permission (more at the <a href="http://code.google.com/chrome/extensions/manifest.html#permissions" rel="nofollow">developer documentation</a> )to your <strong>manifest.json</strong> in order to override the storage limitations.</p> <pre><code>"permissions": [ "unlimitedStorage" ], </code></pre> <p>This will only apply to the File I/O (temporary/persistent) and Web SQL (temporary only). Due to it's synchronous implementation, <strong>localStorage has a maximum of ~ 2700000</strong> characters (as it is stored as UTF-16), which won't be increased by setting this permission.</p> <p>With the File API and Chrome 13+, you can request a certain amount of quota (see <a href="http://updates.html5rocks.com/2011/11/Quota-Management-API-Fast-Facts" rel="nofollow">here</a> and <a href="https://groups.google.com/a/chromium.org/group/chromium-html5/msg/5261d24266ba4366?pli=1" rel="nofollow">here</a> for full example). This has been introduced to work for Web apps and works without setting the <em>unlimitedStorage</em> permission. (However, if the permission is set, the user is currently not asked to allow the storage request) </p> <pre><code>webkitStorageInfo.requestQuota( webkitStorageInfo.PERSISTENT newQuotaInBytes, quotaCallback, errorCallback); </code></pre> <p>In my experiments, this seems to be the only way to <strong>persistently</strong> store large amounts of data.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload