UploadApiTask <Change>
Index
Properties
Methods
Properties
readonlybytesUploaded
Number of bytes that have currently been uploaded
readonlyonChunkuploaded
Triggered every time a chunk has been sucessfully uploaded.
readonlyprogress
Progress of upload in range of [0, 100].
readonlysizeInBytes
Size in bytes of the content that is to be uploaded.
Methods
cancel
cancels the ongoing upload.
Returns Promise<boolean>
boolean promise which evaluates to
true
if cancellation was a success.
upload
Starts uploading the content.
Returns Promise<Change | UploadApiClientFailure>
either a change, representing the new version that the upload resulted in, or UploadApiClientFailure that represents an error.
Represents content that is about to be uploaded.