Properties

app

non-null firebase.app.App

The app associated with the Storage service instance.

Example

var app = storage.app;

maxOperationRetryTime

number

The maximum time to retry operations other than uploads or downloads in milliseconds.

maxUploadRetryTime

number

The maximum time to retry uploads in milliseconds.

Methods

ref

ref(path) returns firebase.storage.Reference

Returns a reference for the given path in the default bucket.

Parameter

path

Optional

string

A relative path to initialize the reference with, for example path/to/image.jpg. If not passed, the returned reference points to the bucket root.

Returns

non-null firebase.storage.Reference A reference for the given path.

refFromURL

refFromURL(url) returns firebase.storage.Reference

Returns a reference for the given absolute URL.

Parameter

url

string

A URL in the form:
1) a gs:// URL, for example gs://bucket/files/image.png
2) a download URL taken from object metadata.

Returns

non-null firebase.storage.Reference A reference for the given URL.

See also
firebase.storage.FullMetadata.prototype.downloadURLs

setMaxOperationRetryTime

setMaxOperationRetryTime(time)

Parameter

time

number

The new maximum operation retry time in milliseconds.

See also
firebase.storage.Storage.prototype.maxOperationRetryTime

setMaxUploadRetryTime

setMaxUploadRetryTime(time)

Parameter

time

number

The new maximum upload retry time in milliseconds.

See also
firebase.storage.Storage.prototype.maxUploadRetryTime