streamich / memfs

JavaScript file system utilities
http://streamich.github.io/memfs/
Apache License 2.0
1.77k stars 130 forks source link

Can I use IndexedDB as a storage? #1053

Closed lesomnus closed 3 months ago

lesomnus commented 3 months ago

I want to write a file that is stored in the browser. Since the file is to be uploaded to the server, it does not need to be saved in the host. Also the file will be quite large (~20GB) so I want to use IndexedDB to store the file.

G-Rath commented 3 months ago

No, memfs is designed for storing in-memory, hence the name - there are a number of ways that you could use IndexedDB to back a file system such as https://dexie.org/ or https://www.npmjs.com/package/idb