GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.38k stars 84 forks source link

Storing handle to indexedDB #70

Closed thien-do closed 2 years ago

thien-do commented 2 years ago

We can save the native FileSystemHandle to indexed DB: https://web.dev/file-system-access/#storing-file-handles-or-directory-handles-in-indexeddb

However, it looks like we can't store the browser-fs-access's FileWithHandle to indexed DB. When get back, it lost the "handle".

I'm not sure if this is expected behaviour, or I'm doing something wrong (storing the wrong item)...

thien-do commented 2 years ago

Sorry, I was misunderstood. This is not valid