Packagecom.myflashlab.air.extensions.firebase.storage
Classpublic class UploadTask
InheritanceUploadTask Inheritance StorageTask Inheritance flash.events.EventDispatcher

A controllable task that uploads and fires events for success, progress and failure. It also allows pause and resume to control the upload operation.



Public Properties
 PropertyDefined By
  bytesTotal : Number
[override] [read-only] the total bytes to upload
UploadTask
  bytesTransferred : Number
[override] [read-only] the total bytes uploaded so far.
UploadTask
 Inheritedexception : String
[read-only] Returns the exception that caused the Task to fail.
StorageTask
  lastError : String
[override] [read-only] the last error encountered
UploadTask
  metadata : StorageMetadata
[override] [read-only] The metadata for the object.
UploadTask
  uploadSessionUri : String
[override] [read-only] The session Uri, valid for approximately one week, which can be used to resume an upload later by passing this value into putFile method.
UploadTask
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override]
StorageTask
 Inherited
cancel():void
Attempts to cancel the task.
StorageTask
 Inherited
pause():void
Attempts to pause the task.
StorageTask
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
[override]
StorageTask
 Inherited
resume():void
Attempts to resume a paused task.
StorageTask
 Inherited
Updates the current state of the task.
StorageTask
Property Detail
bytesTotalproperty
bytesTotal:Number  [read-only] [override]

the total bytes to upload


Implementation
    public function get bytesTotal():Number
bytesTransferredproperty 
bytesTransferred:Number  [read-only] [override]

the total bytes uploaded so far.


Implementation
    public function get bytesTransferred():Number
lastErrorproperty 
lastError:String  [read-only] [override]

the last error encountered


Implementation
    public function get lastError():String
metadataproperty 
metadata:StorageMetadata  [read-only] [override]

The metadata for the object. After uploading, this will return the resulting final Metadata which will include the upload URL.


Implementation
    public function get metadata():StorageMetadata
uploadSessionUriproperty 
uploadSessionUri:String  [read-only] [override]

The session Uri, valid for approximately one week, which can be used to resume an upload later by passing this value into putFile method.

This is not available on the iOS side yet. This means you can't resume your upload after closing the app! We hope Firebase will add this feature soon.


Implementation
    public function get uploadSessionUri():String