🔥 Firebase Svelte v2

<StorageList>

Props

  • storage?: FirebaseStorage - The firebase storage instance, optional if you put the <FirebaseApp> component at the root of your app, or higher than where you're using this component.
  • ref: string | StorageReference<Data> - The node reference to create the store from. Can be a string, just like posts/123 or a StorageReference.
  • data: Blob | Uint8Array | ArrayBuffer; - The data to upload.
  • metadata?: UploadMetadata | undefined - The metadata to upload with the data.

Slots & Props

default

The default slot is rendered when data is found.

  • task: UploadTask | undefined - The upload task.
  • ref: StorageReference<Data> | null - The storage reference you gave.
  • snapshot: UploadTaskSnapshot | null - The snapshot of the upload task.
  • progress: number - The progress of the upload task.
  • storage: FirebaseStorage - The firebase storage instance.