Firebase.Storage.UploadState

UploadState contains information for an upload in progress.

Summary

Properties

BytesTransferred
long
The total number of bytes uploaded so far.
Metadata
Returns
the metadata for the object.
Reference
Returns theStorageReference associated with this upload.
TotalByteCount
long
The total number of bytes to upload.
UploadSessionUri
Uri
Returns
the session Uri, valid for approximately one week, which can be used to resume an upload later by passing this value into an upload.

Properties

BytesTransferred

longBytesTransferred

The total number of bytes uploaded so far.

Details
Returns
the total number of bytes uploaded so far.

Metadata

StorageMetadataMetadata

Details
Returns
the metadata for the object.

After uploading, this will return the resulting final Metadata which will include the upload URL.

Reference

StorageReferenceReference

Returns theStorageReference associated with this upload.

Details
Returns
theStorageReference associated with this upload.

TotalByteCount

longTotalByteCount

The total number of bytes to upload.

Details
Returns
the total number of bytes to upload or -1 if the size is unknown.

UploadSessionUri

UriUploadSessionUri

Details
Returns
the session Uri, valid for approximately one week, which can be used to resume an upload later by passing this value into an upload.

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 2021-06-17 UTC.