Quota Estimation API allows web apps to query the system for the size of storage space in bytes currently used and available for the app.
https://nectar.website/demo/web-apis/quota-estimation/arrow-up-right
You can refer to the code present in /partials/web-apis/quota-estimation.html file and use it accordingly.
/partials/web-apis/quota-estimation.html
https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/estimatearrow-up-right
Last updated 2 years ago