🥰 Feature Description
#2393 #4574 #3994 #2433 #5002 #5015
using base64 string to save image content to localstorage, get error: QuotaExceededError
add new scheme: indexdb://{file_name} to read and write file in indexdb.
using CacheStorage to store image
🧐 Proposed Solution
add new scheme: indexdb://{file_name} to read and write file in indexed db
using CacheStorage to store image
- uploadImage using fetch
- hook upload api in
serviceWorker: save in CacheStorage and return cache file url
- component using
img show image content, then serviceWorker get from CacheStorage
📝 Additional Information
https://caniuse.com/?search=IndexedDB

https://caniuse.com/?search=cachestorage

🥰 Feature Description
#2393 #4574 #3994 #2433 #5002 #5015
using base64 string to save image content to localstorage, get error:
QuotaExceededErroradd new scheme:indexdb://{file_name}to read and write file in indexdb.using
CacheStorageto store image🧐 Proposed Solution
add new scheme:indexdb://{file_name}to read and write file in indexed dbusing CacheStorage to store image
serviceWorker: save inCacheStorageand return cache file urlimgshow image content, thenserviceWorkerget fromCacheStorage📝 Additional Information
https://caniuse.com/?search=IndexedDB

https://caniuse.com/?search=cachestorage
