4 ms·
Isn't localStorage limited to 5 MB of data?
by Wowfunhappy 1y ago
Isn't localStorage limited to 5 MB of data?
- teraflop 1y agoSure, but localStorage isn't really ideal for storing large objects anyway, because it forces everything to be stored in one big string-to-string map. It's great for small amounts of data such as user preferences. There are other APIs that allow you to store binary data directly (which you'll probably want if you're storing large files) and also to use/request larger quotas.
- porridgeraisin 1y agoYeah, better is the filesystem API
- koiueo 1y agoIndexedDB API is a bit more liberal in that regard