最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Cannot allocate more than 10GB of HTML5 persistent storage - Stack Overflow

programmeradmin3浏览0评论

When I try to execute

navigator.webkitPersistentStorage.requestQuota(1024 * 1024 * 1024 * 15, function (bytes) {
        console.log('Successfuly allocated ' + bytes + ' bytes of persistant storage.');
        }, function (e) {
            console.log('Failed to allocate persistant storage!');
        });

then Chrome will allocate only 10737418240 bytes which is exactly 10GB, but I asked for 15GB. Of course, I did click "allow" to allocate more storage. Has anybody met this problem?

EDIT: I don't see any reason why somebody has downvoted my question. The reason why I want to allocate that much data, is that our application must store large amount of medical images. 10GB is definitely not enough. Furthermore, from :

Maximum storage space -- As large as the available space on the hard drive. It has no fixed pool of storage.

EDIT2: NO, my disk is not full. Available space is around ~110GB.

When I try to execute

navigator.webkitPersistentStorage.requestQuota(1024 * 1024 * 1024 * 15, function (bytes) {
        console.log('Successfuly allocated ' + bytes + ' bytes of persistant storage.');
        }, function (e) {
            console.log('Failed to allocate persistant storage!');
        });

then Chrome will allocate only 10737418240 bytes which is exactly 10GB, but I asked for 15GB. Of course, I did click "allow" to allocate more storage. Has anybody met this problem?

EDIT: I don't see any reason why somebody has downvoted my question. The reason why I want to allocate that much data, is that our application must store large amount of medical images. 10GB is definitely not enough. Furthermore, from https://developer.chrome./apps/offline_storage#persistent:

Maximum storage space -- As large as the available space on the hard drive. It has no fixed pool of storage.

EDIT2: NO, my disk is not full. Available space is around ~110GB.

Share Improve this question edited Oct 6, 2015 at 13:30 Signum asked Oct 6, 2015 at 13:14 SignumSignum 8851 gold badge12 silver badges34 bronze badges 10
  • 6 why would you ever want to store that much. that's an unreasonable amount, I'm surprised it lets you do anywhere near 10GB – DLeh Commented Oct 6, 2015 at 13:15
  • developer.chrome./apps/offline_storage – DLeh Commented Oct 6, 2015 at 13:16
  • Disk full? I thought the limit for local storage was somewhere around 5MB... – GolezTrol Commented Oct 6, 2015 at 13:28
  • It's not local storage. Local storage and persistent storage are two pletely different types of HTML5 storage.... I have edited my question, explained why we need such large amount of data. – Signum Commented Oct 6, 2015 at 13:31
  • Are you sure chrome wont actually create more storage as it gets filled? I mean, it seems stupid to reserve a file the size of everything remaining on the hard drive, that would make the puter inoperable. Maybe when you fill up the ten it will slowly expand and then ask for storage permissions again once you hit 15? – somethinghere Commented Oct 6, 2015 at 13:45
 |  Show 5 more ments

1 Answer 1

Reset to default 10

I have reported bug to Google. Turns out that max persistent storage quota is indeed 10GB, but documentation saying "As large as the available space on the hard drive" is incorrect.

https://bugs.chromium/p/chromium/issues/detail?id=540574&q=persistent%20storage&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

发布评论

评论列表(0)

  1. 暂无评论