无法分配超过10GB的HTML5持久性存储 [英] Cannot allocate more than 10GB of HTML5 persistent storage

查看:179
本文介绍了无法分配超过10GB的HTML5持久性存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试执行

$ p $ navigator.webkitPersistentStorage.requestQuota(1024 * 1024 * 1024 * 15,函数(字节) {
console.log('Successfuly allocated'+ bytes +'bytes of persistant storage。');
},function(e){
console.log('未能分配持久性存储!');
});

然后Chrome将只分配10737418240字节,这正好是10GB,但我要求15GB。当然,我点击允许分配更多的存储空间。有没有人遇到过这个问题?



编辑:我没有看到有人为什么会低估我的问题。
我想分配那么多数据的原因是我们的应用程序必须存储大量医学图像。 10GB是绝对不够的。
此外,从 https://developer.chrome.com/apps/offline_storage#persistent


最大存储空间 - 与硬盘上的可用空间一样大。它没有固定的存储池。


编辑2:不,我的磁盘未满。可用空间约为110GB。

解决方案

我向Google报告了错误。事实证明,最大永久存储配额确实是10GB,但文档中提到与硬盘上的可用空间一样大是不正确的。 ?://bugs.chromium.org/p/chromium/issues/detail ID = 540574&安培; q =持久%20storage&安培; colspec = ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified rel =noreferrer> https://bugs.chromium.org/p/chromium/issues/detail?id=540574&q=persistent%20storage&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status %20Owner%20Summary%20OS%20修改


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.com/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.

解决方案

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.org/p/chromium/issues/detail?id=540574&q=persistent%20storage&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

这篇关于无法分配超过10GB的HTML5持久性存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆