UploadTaskSnapshot interface Stay organized with collections Save and categorize content based on your preferences.
Holds data about the current state of the upload task.
Signature:
exportinterfaceUploadTaskSnapshotProperties
| 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. |
UploadTaskSnapshot.bytesTransferred
The number of bytes that have been successfully uploaded so far.
Signature:
bytesTransferred:number;UploadTaskSnapshot.metadata
Before the upload completes, contains the metadata sent to the server. After the upload completes, contains the metadata sent back from the server.
Signature:
metadata:FullMetadata;UploadTaskSnapshot.ref
The reference that spawned this snapshot's upload task.
Signature:
ref:StorageReference;UploadTaskSnapshot.state
The current state of the task.
Signature:
state:TaskState;UploadTaskSnapshot.task
The task of which this is a snapshot.
Signature:
task:UploadTask;UploadTaskSnapshot.totalBytes
The total number of bytes to be uploaded.
Signature:
totalBytes:number;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-22 UTC.