Stay organized with collections
Save and categorize content based on your preferences.
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
|
|
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
long BytesTransferred
The total number of bytes uploaded so far.
Details |
Returns
|
the total number of bytes uploaded so far.
|
StorageMetadata Metadata
Details |
Returns
|
the metadata for the object.
|
After uploading, this will return the resulting final Metadata which will include the upload URL.
TotalByteCount
long TotalByteCount
The total number of bytes to upload.
Details |
Returns
|
the total number of bytes to upload or -1 if the size is unknown.
|
UploadSessionUri
Uri UploadSessionUri
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 the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.
[null,null,["Last updated 2021-06-17 UTC."],[],[],null,["# Firebase.Storage.UploadState Class Reference\n\nFirebase.Storage.UploadState\n============================\n\n[UploadState](/docs/reference/unity/class/firebase/storage/upload-state#class_firebase_1_1_storage_1_1_upload_state) contains information for an upload in progress.\n\nSummary\n-------\n\n| ### Properties ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BytesTransferred](#class_firebase_1_1_storage_1_1_upload_state_1abf5c9c32b9fc1cd0e136fbc55e41648d) | `long` The total number of bytes uploaded so far. |\n| [Metadata](#class_firebase_1_1_storage_1_1_upload_state_1a474366246e517e1b921632a53c21bc94) | [StorageMetadata](/docs/reference/unity/class/firebase/storage/storage-metadata#class_firebase_1_1_storage_1_1_storage_metadata) |\n| **Returns** | the metadata for the object. |\n| [Reference](#class_firebase_1_1_storage_1_1_upload_state_1a14817f7ea66637c46824ff72498093f5) | [StorageReference](/docs/reference/unity/class/firebase/storage/storage-reference#class_firebase_1_1_storage_1_1_storage_reference) Returns the [StorageReference](/docs/reference/unity/class/firebase/storage/storage-reference#class_firebase_1_1_storage_1_1_storage_reference) associated with this upload. |\n| [TotalByteCount](#class_firebase_1_1_storage_1_1_upload_state_1a5cafb0080919af0de4fc2886cc7fb8b4) | `long` The total number of bytes to upload. |\n| [UploadSessionUri](#class_firebase_1_1_storage_1_1_upload_state_1a397d1e3b789456f6cda7676a5d22340c) | `Uri` |\n| **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. |\n\nProperties\n----------\n\n### BytesTransferred\n\n```c#\nlong BytesTransferred\n``` \nThe total number of bytes uploaded so far.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|--------------------------------------------|\n| **Returns** | the total number of bytes uploaded so far. |\n\n### Metadata\n\n```c#\nStorageMetadata Metadata\n``` \n\u003cbr /\u003e\n\n| Details ||\n|-------------|------------------------------|\n| **Returns** | the metadata for the object. |\n\nAfter uploading, this will return the resulting final Metadata which will include the upload URL. \n\n### Reference\n\n```c#\nStorageReference Reference\n``` \nReturns the [StorageReference](/docs/reference/unity/class/firebase/storage/storage-reference#class_firebase_1_1_storage_1_1_storage_reference) associated with this upload.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | the [StorageReference](/docs/reference/unity/class/firebase/storage/storage-reference#class_firebase_1_1_storage_1_1_storage_reference) associated with this upload. |\n\n### TotalByteCount\n\n```c#\nlong TotalByteCount\n``` \nThe total number of bytes to upload.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------|\n| **Returns** | the total number of bytes to upload or -1 if the size is unknown. |\n\n### UploadSessionUri\n\n```c#\nUri UploadSessionUri\n``` \n\u003cbr /\u003e\n\n| Details ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| **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. |"]]