24
Views
3
Comments
Solved
Error Message: Failed to execute 'setItem' on 'Storage'
Question

Hello,

What does this error mean? I tried to save a PDF in Base64 format in a text client variable. The Base64 string probably exceeds the limit. Does anyone know what the limit is for client variables?

Thanks!


UserImage.jpg
Afaque Shaikh
Solution

Hi,

The local storage size varies from browser to browser (2.5 MB per origin in Google Chrome; 5 MB per origin in Mozilla Firefox, and Opera; 10 MB per storage area in Internet Explorer). 

You can also test your browser's local storage here

Thanks,
Afaque


2024-06-24 04-49-49
Princi

Hello @Lucas Sebastian Dereani 

Please checkout this link once. This will help you out.

failed-to-execute-setitem-on-storage

Regards

Prince

UserImage.jpg
Md Mansur

Hi @Lucas Sebastian Dereani 

Client variables use local storage. Local storage limits depend on each browser so go though the following link to understand limit

Link:

https://www.sitepoint.com/html5-local-storage-revisited/

Alternative solution:

If you have large data than create a table and store this base64 data in this table so its is good for you and also follow best Practices Until Its depend upon your Requirements


Thanks

Md Mansur  

UserImage.jpg
Afaque Shaikh
Solution

Hi,

The local storage size varies from browser to browser (2.5 MB per origin in Google Chrome; 5 MB per origin in Mozilla Firefox, and Opera; 10 MB per storage area in Internet Explorer). 

You can also test your browser's local storage here

Thanks,
Afaque


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.