Hi Experts,
I am always getting extract result "CP_EXTRACT_RESULT_NOT_SCRUBBED" from query api. Please find my request below.
Request#1
Upload API request:
{\"request\":{\"file_name\":\"DOCX.docx\",\"file_type\": \"docx\",\"features\":[\"extraction\"],\"extraction\":{\"method\":\"clean\"}}}
Upload API Response:
{
"response": {
"status": {
"code": 1002,
"label": "UPLOAD_SUCCESS",
"message": "The file was uploaded successfully."
},
"sha1": "8064ff3d851f273df43376cfcb9c2ebd47131c8b",
"md5": "f78a90963ca8a382da6611eb5cdbe2e3",
"sha256": "056c1f0d31faa557cdac687b0fcc5103cc4aa0dbf8027499303e182754c981b8",
"file_type": "docx",
"file_name": "DOCX.docx",
"features": [
"extraction"
],
"extraction": {
"method": "clean",
"tex_product": false,
"status": {
"code": 1002,
"label": "UPLOAD_SUCCESS",
"message": "The file was uploaded successfully."
}
}
}
}
Request#2
Query API Request:
{
"request": [
{
"sha1": "8064ff3d851f273df43376cfcb9c2ebd47131c8b",
"file_name": "DOCX.docx",
"file_type": "docx",
"features": ["extraction"],
"extraction": {"method": "clean"}
}
]
}
Query API Response:
{
"response": [
{
"status": {
"code": 1001,
"label": "FOUND",
"message": "The request has been fully answered."
},
"sha1": "8064ff3d851f273df43376cfcb9c2ebd47131c8b",
"file_type": "docx",
"file_name": "DOCX.docx",
"features": [
"extraction"
],
"extraction": {
"method": "clean",
"extract_result": "CP_EXTRACT_RESULT_NOT_SCRUBBED",
"output_file_name": "DOCX.docx",
"extraction_data": {
"input_extension": "docx",
"input_real_extension": "docx",
"message": "Skipped",
"output_file_name": "",
"protection_name": "Potential malicious content extracted",
"protection_type": "Content Removal",
"protocol_version": "1.0",
"risk": 0.0,
"scrub_activity": "The file doesn't include cleanable parts",
"scrub_method": "Clean Document",
"scrub_result": 4.0,
"scrub_time": "0.04",
"scrubbed_content": ""
},
"tex_product": false,
"status": {
"code": 1001,
"label": "FOUND",
"message": "The request has been fully answered."
}
}
}
]
}
Can someone please help me what mistake am I doing here ? why query api response is not sending download file id ?