Skip to content

Problems with Local Storage

RandomPerson3465 edited this page Aug 18, 2024 · 2 revisions

Are you seeing this warning in Top 50? "Warning: An error occurred when saving data in your browser. This could be the result of your save file being too large."

Why This Message Appears

When Livecountsedit stores data in your browser, it uses something called local storage. According to the MDN Web Docs, local storage is limited to 5 MiB (5,242,880 bytes or 5.2 megabytes) per site.

If you uploaded images directly to the site using the "Choose File" button on counters that use save data, then all of the image's data will be saved in the save file as well as local storage. This image data can dramatically increase the size of the save file, sometimes pushing it over the 5 MiB limit.

Replace Images with URLs

To fix this issue, try replacing any images you have directly uploaded with URLs. You can upload images to an image hosting site like Imgur, send them as attachments on Discord, or use any other method to get an image hosted on the web. Copy the URL, edit the channel by selecting it in the "Edit" section, and replace the text in the image field (which will be a really long string of text starting with "data:") with the new URL. Don't forget to save by clicking the "Edit" button. Repeat this for all channels with images that were directly uploaded.

If you uploaded large images for other counters that use save data, remember to replace them with URLs on those counters as well (since the 5 MiB limit is for the entire site).

Report a Bug or Issue

After saving the new data in the browser, if this error persists, then it could be the result of a bug. If that's the case, please report it in the Livecountsedit Discord server.

Clone this wiki locally