@strategies/firebase-files
v0.0.14
Published
Utilities for uploading, unzipping and serving files via firebase storage. Includes the upload form and client-side code for unzipping and uploading.
Downloads
403
Keywords
Readme
@strategies/firebase-files
A simple, but robust solution for file management on firebase.
Firestore files
Store metadata and snapshot references in Firestore records. These are what get listed when the user brings up a list of snapshots, but they don't contain any file data - only references to snapshots - including an 'activeSnapshot' tag that represents the current state of the file. Every time user presses save they generate a new snapshot and the 'active' pointer in the Firestore record is updated.
Snapshots
Direct serializations of mobx-keystone persist stores. Can support large data if needed.
Uploads
Upload and unzip files into cloud storage. Then return a unique path in order to access those files.