Fungování této stránky je z důvodu údržby dočasně omezeno. Pokud žádný článek nápovědy nevyřeší váš problém a potřebujete se zeptat na další řešení, napište nám na Twitter @FirefoxSupport nebo Reddit /r/firefox.

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

How to increase localStorage size to 20MB in Firefox 56 (in options, html, or javascript) ???

  • 2 odpovědi
  • 2 mají tento problém
  • 1 zobrazení
  • Poslední odpověď od smorele

more options

I am writing an HTML5-Javascript video game. I want to save 2 files to PERSISTENT localStorage: one file can be 20MB in size... I have tried to increase the 5MB storage limit to 15MB & it does work. I have tried:

to SET max limit: window.webkitStorageInfo.requestQuota(

           window.PERSISTENT,
           15000000,
           function( bytes ) {
               alert( "Quota is available: " + bytes );
           },
           function( e ) {
               alert( "Error allocating quota: " + e );
           });

and to READ current usage:

window.webkitPersistentStorage.queryUsageAndQuota (

   function(usedBytes, grantedBytes) {  
       alert('we are using '+ usedBytes+ ' of '+ grantedBytes+ ' bytes');
   }, 
   function(e) { alert('Error'+ e);  }

);

Try window. & navigator.webkit... I get error "webkit... undefined"

HELP??????

-Michael

I am writing an HTML5-Javascript video game. I want to save 2 files to PERSISTENT localStorage: one file can be 20MB in size... I have tried to increase the 5MB storage limit to 15MB & it does work. I have tried: to SET max limit: window.webkitStorageInfo.requestQuota( window.PERSISTENT, 15000000, function( bytes ) { alert( "Quota is available: " + bytes ); }, function( e ) { alert( "Error allocating quota: " + e ); }); and to READ current usage: window.webkitPersistentStorage.queryUsageAndQuota ( function(usedBytes, grantedBytes) { alert('we are using '+ usedBytes+ ' of '+ grantedBytes+ ' bytes'); }, function(e) { alert('Error'+ e); } ); Try window. & navigator.webkit... I get error "webkit... undefined" HELP?????? -Michael

Všechny odpovědi (2)

more options

sorry TYPO: I have tried to increase the 5MB storage limit to 15MB & it does NOT work.

more options

try this:

  1. tape about:config in your url bare
  2. Accept by clicking on the button
  3. search dom.storage.default_quota
  4. update the value (in Kb)

If I were you, I would simply use this during my tests.