Page 1 of 1

QuotaExceededError on Fileupload

Posted: Sun Aug 21, 2016 6:41 am
by Joe7349603

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


QuotaExceededError on Fileupload

Posted: Sun Aug 21, 2016 12:21 pm
by Serhii Kulibaba

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)


QuotaExceededError on Fileupload

Posted: Mon Aug 22, 2016 3:21 am
by Joe7349603

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?


QuotaExceededError on Fileupload

Posted: Sat Aug 27, 2016 6:58 am
by Evgene Karachevtsev

Hello Joe,

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