Vue FileUploader - UploadInfo

An object that provides information about the file upload session.

bytesUploaded

The number of bytes that is uploaded to the server.

Selector: bytes-uploaded
Type:

Number

chunkBlob

The binary content of the uploading chunk.

Selector: chunk-blob
Type:

BLOB

chunkCount

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

Selector: chunk-count
Type:

Number

chunkIndex

The index of the uploading chunk.

Selector: chunk-index
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.

Selector: custom-data
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