The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/storage > UploadTaskSnapshot

UploadTaskSnapshot interface

Holds data about the current state of the upload task.

Signature:

export interface UploadTaskSnapshot 

Properties

Property Type Description
bytesTransferred number The number of bytes that have been successfully uploaded so far.
metadata FullMetadata Before the upload completes, contains the metadata sent to the server. After the upload completes, contains the metadata sent back from the server.
ref StorageReference The reference that spawned this snapshot's upload task.
state TaskState The current state of the task.
task UploadTask The task of which this is a snapshot.
totalBytes number The total number of bytes to be uploaded.