I am creating a Firefox add-on to store data in the local-storage. But it is limited to 5MB. I want it to be unlimited. Is there any way to make the local-storage space unlimited ?
Thanks in advance.
I am creating a Firefox add-on to store data in the local-storage. But it is limited to 5MB. I want it to be unlimited. Is there any way to make the local-storage space unlimited ?
Thanks in advance.
Like others said it is not possible to allocate unlimited space for local storage, each browser es with it's own limitations.
Here's a suggestion, local Storage is GRATE for Key, Value pairs, so for any data that exceeds 5MB limit a better approach would be to use a database such as IndexedDB.
It is not possoble (its a browser running on users machine not your own).. each browser gives a fixed space for local storage, that you will not be able to increase. also read these links
https://stackoverflow./a/9283791/3556874
http://dev.w3/html5/webstorage/#disk-space
You can have an unlimited storage with WebSQL on Chrome extension only.
https://developer.chrome./extensions/declare_permissions
A lot of time had past since this question was asked but since googling still points here, I'm adding suggestion to use IndexedDB
as a client side storage instead of LocalStorage to bypass 5MB quota limit.
This is built in DB solution for browsers, with benefits of fast data insertion
and big storage capacity
(about 1GB
or more
if needed, limit is only the hard drive)
IndexedDB MDN documentation
Official GitHub Example
There is a lot of good recourses on using IdexedDB (YouTube, GitHub, Articles)