Callable

  • storage(app?: App): Storage
  • Gets the Storage service for the default app or a given app.

    firebase.storage() can be called with no arguments to access the default app's Storage service or as firebase.storage(app) to access the Storage service associated with a specific app.

    example
    // Get the Storage service for the default app
    var defaultStorage = firebase.storage();
    example
    // Get the Storage service for a given app
    var otherStorage = firebase.storage(otherApp);

    Parameters

    • Optional app: App

      The app to create a storage service for. If not passed, uses the default app.

    Returns Storage

Index

Type aliases

StringFormat

StringFormat: string
enum

{string} An enumeration of the possible string formats for upload.

TaskEvent

TaskEvent: string

An event that is triggered on a task.

enum

{string}

see

{@link firebase.storage.UploadTask.prototype.on}

TaskState

TaskState: string

Represents the current state of a running upload.

enum

{string}

Gửi phản hồi về...

Bạn cần trợ giúp? Truy cập trang hỗ trợ của chúng tôi.