Joe7349603
Posts: 0
Joined: Tue Jan 27, 2015 11:08 pm

QuotaExceededError on Fileupload

I am using file upload service and I have noticed that when I try to select an image approximately 4MB and up (not sure of exact size) I get the following error. Please note that I am using Input File component to select the image on my phone and then converting/saving that image to Base64 in LSV to later submit it. This error is being thrown when trying to save the image to LSV.

Two questions: Why is there a quota, how can I override the quota.

QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'uploadImage1' exceeded the quota.setItem @ target-script-min.js:1274SetCurrentFile.reader1.onloadend @ Submit_Crime_Tip.js:6293

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

QuotaExceededError on Fileupload

Hello Joe,

Please save that file into the window variable instead of localStorage one (you can change the type on the "Model and Storage" tab)

Joe7349603
Posts: 0
Joined: Tue Jan 27, 2015 11:08 pm

QuotaExceededError on Fileupload

Thanks Kulibaba,

The reason I would prefer to use LSV is so that I can manually manage binary data for later submission in case there is no internet by just calling the service when there is internet but with session variable, I may not be able to accomplish that because I would lose the images after navigating away. Are you able to suggest a way of knowing the size limit of file upload (reading through the code I could not find anywhere it is specified) I would then check the size of the image and prevent the user from submitting if it exceeds that size?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

QuotaExceededError on Fileupload

Hello Joe,

This seems to be browser's quota for local storage, not Appery.io: http://www.html5rocks.com/en/tutorial...

Return to “Issues”