Callable

  • 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}

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面