How to check avaialble space for IndexedDB in Chrome?

Oracle Application Express is a rapid development tool for Web applications on the Oracle database.
Post Reply
admin
Posts: 2080
Joined: Fri Mar 31, 2006 12:59 am
Location: Pakistan
Contact:

How to check avaialble space for IndexedDB in Chrome?

Post by admin »

Press F12 and in Console paste following code,

Code: Select all

if (navigator.storage && navigator.storage.estimate) {
  const quota = await navigator.storage.estimate();
  // quota.usage -> Number of bytes used.
  // quota.quota -> Maximum number of bytes available.
  const percentageUsed = (quota.usage / quota.quota) * 100;
  console.log(`You've used ${percentageUsed}% of the available storage.`);
  const remaining = (quota.quota - quota.usage)/1024/1024;
  console.log(`You can write up to ${remaining} more MB.`);
}
indexedDB.jpg
You do not have the required permissions to view the files attached to this post.
Malik Sikandar Hayat
Oracle ACE Pro
info@erpstuff.com
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests