NET_DVR_GetUploadState

Get the file uploading progress and status.

API Definition

LONG NET_DVR_GetUploadState(
  LONG       lUploadHandle,
  DWORD      *pProgress
);

Parameters

lUploadHandle

[IN] Handling for uploading files, which is returned by NET_DVR_UploadFile_V40.

pProgress

[OUT] Returned progress value.

Return Values

Return -1 for failure, and return other values as the uploading status codes, see details in the following table.

Table 1 Uploading Status Code

Return Value

Description

1

Uploaded successfully.

2

Uploading.

3

Uploading failed.

4

Network disconnected. Unknown status.

6

HDD error.

7

No HDD for saving inquest files.

8

Insufficient capacity.

9

Insufficient device resource.

10

No more files can be uploaded.

11

Too large file size.

15

File type error.

19

Invalid file format.

20

Incorrect file content.

21

The uploaded audio sampling rate is not supported.

22

Insufficient storage in the face library.

26

Name error.

27

Invalid picture resolution.

28

Too many targets on the picture.

29

No target is recognized on the picture.

30

Picture recognition failed.

31

Analysis engine exception.

32

Analyzing additional information on the picture failed.

33

Thumbnail modeling failed.

34

Incorrect security verification key.

35

Downloading picture via URL has not started.

36

Duplicate custom ID of different persons.

37

Person ID error (The ID is saved in customHumanID of FaceAppendData).

38

Modeling failed. Device inner error.

39

Modeling failed. Face modeling error.

40

Modeling failed. Face score error.

41

Modeling failed. Feature collection error.

42

Modeling failed. Attribute collection error.

43

Picture data error.

44

Picture additional information error.

45

Certificate has already existed.