This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Scan Uploaded File using Sophos Labs Intelix in C#

FormerMember
FormerMember

I am new to SophosLabs Intelix. I am trying to build a sample in my ASP .Net Application(webforms/MVC) in which I want to run an Antivirus Scan on the uploaded file by the User. If the Uploaded file is clean I want to upload it to the server else I want to cancel the operation. I want to specifically use SophosLabs Intelix for the functionality. It would be great if someone can guide me regarding this functionality. A code sample in C# would be appreciated a lot. Thanks in advance for your help.

Sample : indigocard

if(file.HasFile)
{
     //run an antivirus scan
     //result
     if(result == NoThreat){
         //Uploaded Successfully
     }
     else{
         //File contains a virus. Upload failed!
     }
}
else{
     //Please select a file to upload!
}



This thread was automatically locked due to age.