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

queryUsageAndQuota method should return the actual usage and quota in IndexedDB #1

Closed
shacharz opened this issue Dec 12, 2013 · 3 comments
Assignees
Labels
Milestone

Comments

@shacharz
Copy link

If no prompt from user was requested quota should be 50MB
If there was prompt and the user authorized the quota should be the amount of free disk space left?

@kouk
Copy link
Member

kouk commented Dec 12, 2013

Sounds right. I'm not sure of the top of my head how to get the indexedb
usage, but I will look into it. If you have any suggestions they are more
than welcome.

@ghost ghost assigned kouk Dec 12, 2013
@kouk
Copy link
Member

kouk commented Jan 8, 2014

well it seems there is no way to do this using IndexedDB. If browsers implement quota-api then it would be trivial (but then this polyfill would be redundant - see #2). Please let me know if you have any ideas about how it could be done and I will re-open this issue.

@kouk kouk closed this as completed Jan 8, 2014
@shacharz
Copy link
Author

shacharz commented Jan 8, 2014

I guess, this has to be coupled with the fliesystem polyfill for IDB.
For example if you ask for temporary using window.webkitRequestFileSystem for less than 50MB that would be the quota the method would return the number you asked for
If you ask for Persistant, than the quota would return maxInt or something.
I know this is far from ideal...

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

No branches or pull requests

2 participants