KoolUploaderItem Class [Javascript]

Summary

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

Properties Detail

idTop

string id

Get the id of the item

Show/Hide Code

Supported from version: 1.0.0.0

Methods Detail

attachDataTop

void attachData(string text)

Attach extra data along with uploaded item

Show/Hide Code

Supported from version: 1.2.0.7

cancelTop

void cancel()

Upload the item

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

getElapsedTimeTop

int getElapsedTime()

Get the elapsed uploading time.

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

getEstimatedTimeLeftTop

int getEstimatedTimeLeft()

Get estimated time remaining to finish the 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

getLastSpeedTop

int getLastSpeed()

Get the last uploading speed

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

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

getUploadedPercentTop

int getUploadedPercent()

Get uploading completion percent

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

setProgessTextTop

void setProgessText(string text)

Set the text near progress bar

Show/Hide Code

Supported from version: 1.0.0.0

uploadTop

void upload()

Upload the item

Show/Hide Code

Supported from version: 1.0.0.0