Retrieve scan status and data sanitization results after uploading a file.
Data sanitization is supported for the following file types: PDF, DOC(X/M), DOT(X/M), XLS(B/X/M), PPT(X/M), PPSX, RTF, BMP, PNG, JPG/JPEG, EPS, GIF, SVG, TIF(F), HTM/HTML, XML, HWP, JTD, OTD, DWG.
On MetaDefender Cloud, scans and data sanitization requests are performed asynchronously, and each scan request is tracked by a data ID. For initiating data sanitization, use the same endpoint that is used for File scan: POST /v2/file and add additional header user_agent and value mcl-metadefender-rest-sanitize-disabled-unarchive: Scanning a file by file upload.
Private scanning does not work with sanitization. When sanitizing a file, even if the file is uploaded with "samplesharing: 0" header, we will keep a copy of the sanitized version of the file for the user to download.