docs-devsite/storage.uploadtasksnapshot.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
Holds data about the current state of the upload task.
<b>Signature:</b>
export interface UploadTaskSnapshot
| 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. |
The number of bytes that have been successfully uploaded so far.
<b>Signature:</b>
bytesTransferred: number;
Before the upload completes, contains the metadata sent to the server. After the upload completes, contains the metadata sent back from the server.
<b>Signature:</b>
metadata: FullMetadata;
The reference that spawned this snapshot's upload task.
<b>Signature:</b>
ref: StorageReference;
The current state of the task.
<b>Signature:</b>
state: TaskState;
The task of which this is a snapshot.
<b>Signature:</b>
task: UploadTask;
The total number of bytes to be uploaded.
<b>Signature:</b>
totalBytes: number;