All docs
V24.2
24.2
24.1
23.2
23.1
22.2
22.1
21.2
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
The page you are viewing does not exist in version 19.2.
19.1
The page you are viewing does not exist in version 19.1.
18.2
The page you are viewing does not exist in version 18.2.
18.1
The page you are viewing does not exist in version 18.1.
17.2
The page you are viewing does not exist in version 17.2.

JavaScript/jQuery FileManager - UploadInfo

An object that provides information about the file upload session.

import UploadInfo from "devextreme/file_management/upload_info"

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