Reputation: 794
I'm creating my persistent html5 filesystem storage like this from dart:
window.webkitRequestFileSystem(Window.PERSISTENT,
5 * 1024 * 1024, onFSOpened, onFSError);
Any operation on the filesystem fails with the error QUOTA_EXCEEDED_ERR. However, it works with TEMPORARY.
A reply in this thread suggests that for persistent storage, I should request quota manually with this JavaScript API
window.webkitStorageInfo.requestQuota
I don't find window.webkitStorageInfo in dart (checked with latest build). Any pointers?
Thanks!
EDIT: To clarify, window.webkitRequestFileSystem
returns successfully. However, any write operations on the filesystem throws an Quota Exceeded error
Upvotes: 2
Views: 525
Reputation: 7393
I just tried this line on build 9797 using Dartium, and it worked for me:
window.webkitRequestFileSystem(Window.PERSISTENT,
5 * 1024 * 1024, (f) => print('got it'));
Upvotes: 1