Filesystem Api Not Working In Chrome V27 & V29
I'm trying to set up a file storage for later use in Phonegap, but debugging in Chrome for now. Going the way as described on html5rocks only lets me request a quota from the user,
Solution 1:
I'm running Chorme 27 and the follwoing appears to work, showing the log message indicated
functiononError () { console.log ('Error : ', arguments); }
navigator.webkitPersistentStorage.requestQuota (1024*1024*1024, function(grantedBytes) {
console.log ('requestQuota: ', arguments);
requestFS(grantedBytes);
}, onError);
functionrequestFS(grantedBytes) {
window.webkitRequestFileSystem(window.PERSISTENT, grantedBytes, function(fs) {
console.log ('fs: ', arguments); // I see this on Chrome 27 in Ubuntu
}, onError);
}
Basically I changed window.webkitStorageInfo.requestQuota
in your original code to navigator.webkitPersistentStorage.requestQuota
and removed the PERSISTENT
parameter
Post a Comment for "Filesystem Api Not Working In Chrome V27 & V29"