firebase.storage. Storage
The Firebase Storage service interface.
Do not call this constructor directly. Instead, use
firebase.storage().
See Get Started on Web for a full guide on how to use the Firebase Storage service.
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 |
- Returns
-
non-null firebase.storage.ReferenceA 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: |
- Returns
-
non-null firebase.storage.ReferenceA 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

