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.41k stars 85 forks source link

How to serialize file handles? #30

Closed GreenFootballs closed 3 years ago

GreenFootballs commented 3 years ago

The article at web.dev mentions that file handles are serializable, and can be stored in IndexedDB (and presumably chrome.storage?), but there's no example and I haven't been able to make this work. What is the procedure for serializing the file handles for storage?

tomayac commented 3 years ago

I have just documented the answer on StackOverflow.