javascript – 无法分配超过10GB的HTML5持久存储空间

前端之家收集整理的这篇文章主要介绍了javascript – 无法分配超过10GB的HTML5持久存储空间前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我尝试执行
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!');
        });

那么Chrome只会分配仅为1037个字节的10737418240个字节,但是我要求15GB.当然,我点击“允许”分配更多的存储空间.有没有人遇到这个问题?

编辑:我没有看到有人拒绝我的问题的任何理由.
我想分配这么多数据的原因是,我们的应用程序必须存储大量的医学图像. 10GB绝对不够.
此外,从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.

编辑2:不,我的磁盘不满.可用空间大约在110GB左右.

解决方法

我向Google报告错误.原来,最大持久存储配额确实是10GB,但文档说“与硬盘上的可用空间一样大”是不正确的.

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

原文链接:https://www.f2er.com/js/153182.html

猜你在找的JavaScript相关文章