KoolUploaderItem Class [Javascript]

Summary

Properties Description
id Get the id of the item
Methods Description
upload Upload the item
remove Remove the item from list
cancel Upload the item
getStatus Get the item's status
getFileName Get the name of file
getTotalBytes Get total bytes or filesize
getUploadedBytes Get number of bytes have been uploaded
getEstimatedTime Get total estimated time to finish this item upload
getElapsedTime Get the elapsed uploading time.
getEstimatedTimeLeft Get estimated time remaining to finish the upload
getLastSpeed Get the last uploading speed
getAverageSpeed Get the average uploading speed
getUploadedPercent Get uploading completion percent
setProgessText Set the text near progress bar
attachData Attach extra data along with uploaded item

Properties Detail

idTop

string id

Get the id of the item

Show/Hide Code

Supported from version: 1.0.0.0

Methods Detail

uploadTop

void upload()

Upload the item

Show/Hide Code

Supported from version: 1.0.0.0

removeTop

void remove()

Remove the item from list

Show/Hide Code

Supported from version: 1.0.0.0

cancelTop

void cancel()

Upload the item

Show/Hide Code

Supported from version: 1.0.0.0

getStatusTop

string getStatus()

Get the item's status.
Return value:

"ready": File item has been added and ready to upload
"uploading": File item is uploading
"uploaded": File item is uploaded successfully
"failed": File item is failed to upload

Show/Hide Code

Supported from version: 1.0.0.0

getFileNameTop

string getFileName()

Get the name of file

Show/Hide Code

Supported from version: 1.0.0.0

getTotalBytesTop

int getTotalBytes()

Get total bytes or filesize

Show/Hide Code

Supported from version: 1.0.0.0

getUploadedBytesTop

int getUploadedBytes()

Get number of bytes have been uploaded

Show/Hide Code

Supported from version: 1.0.0.0

getEstimatedTimeTop

int getEstimatedTime()

Get total estimated time to finish this item upload

Show/Hide Code

Supported from version: 1.0.0.0

getElapsedTimeTop

int getElapsedTime()

Get the elapsed uploading time.

Show/Hide Code

Supported from version: 1.0.0.0

getEstimatedTimeLeftTop

int getEstimatedTimeLeft()

Get estimated time remaining to finish the upload

Show/Hide Code

Supported from version: 1.0.0.0

getLastSpeedTop

int getLastSpeed()

Get the last uploading speed

Show/Hide Code

Supported from version: 1.0.0.0

getAverageSpeedTop

int getAverageSpeed()

Get the average uploading speed

Show/Hide Code

Supported from version: 1.0.0.0

getUploadedPercentTop

int getUploadedPercent()

Get uploading completion percent

Show/Hide Code

Supported from version: 1.0.0.0

setProgessTextTop

void setProgessText(string text)

Set the text near progress bar

Show/Hide Code

Supported from version: 1.0.0.0

attachDataTop

void attachData(string text)

Attach extra data along with uploaded item

Show/Hide Code

Supported from version: 1.2.0.7