JavaScript/jQuery FileUploader - UploadInfo

An object that provides information about the file upload session.

bytesUploaded

The number of bytes that is uploaded to the server.

Type:

Number

chunkBlob

The binary content of the uploading chunk.

Type:

BLOB

chunkCount

The number of uploaded chunks and chunks that are to be uploaded.

Type:

Number

chunkIndex

The index of the uploading chunk.

Type:

Number

customData

Custom information that you can pass during file upload. For instance, you can specify a custom file ID when the first part of a file is being uploaded.

Type: any

jQuery
if(uploadInfo.chunkIndex === 0) {
    uploadInfo.customData.myId = "myIdValue";
}
Angular
if(uploadInfo.chunkIndex === 0) {
    uploadInfo.customData.myId = "myIdValue";
}
Vue
  if(uploadInfo.chunkIndex === 0) {
    uploadInfo.customData.myId = "myIdValue";
}
React
if(uploadInfo.chunkIndex === 0) {
    uploadInfo.customData.myId = "myIdValue";
}

View on GitHub