Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Download error code: 22 #214

Open
leandroz opened this issue May 31, 2017 · 3 comments
Open

ERROR: Download error code: 22 #214

leandroz opened this issue May 31, 2017 · 3 comments

Comments

@leandroz
Copy link

Hi!, first thanks for this awesome library! I used it in a couple of projects already and its super useful.

I am getting this error: ERROR: Download error code: 22, while trying to store a blob. Basically I am getting a base64 string from the server, then converting to a blob and then trying to store that into the filesystem, is it a better way? maybe passing the base64 string directly?

Thanks in advance!

@csicky
Copy link

csicky commented Nov 11, 2017

I also got this error and found out that it means the quota has been exceeded. I would like to know what is the best to do in this case because I didn't got a prompt from Chrome to allow more storage. This means my users will not get the prompt either. Should I re prompt the user when I catch this specific error? Or should ImgCache do the prompt automatically when the error happens?

On Cordova seems to be working without issues for the same images with same sizes.

@kotrakrishna
Copy link

Got the same error. Not sure what it means.

@chrisben
Copy link
Owner

According to @csicky it means the quota has been exceeded.
You can set a higher value for the local storage quota if the default 10MB is too low for you, see: ImgCache.options.chromeQuota

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants