C# .NET - scanning a file for any virus before file upload

Asked By karur krishna madhu on 04-Jan-14 03:25 AM
i want to scan the file to check for any virus before the file is uploaded. how to invoke the anti virus on the system and scan the file using c# code?
Robbe Morris replied to karur krishna madhu on 04-Jan-14 09:25 AM
You don't.

Your server side virus scanner will do the work as the file is being uploaded.  So, make sure it is a solid product and is up to date.  It is also not a bad idea to upload the file to a separate server and deliver them/render them from that server and not your primary application server (if you can afford that).
karur krishna madhu replied to Robbe Morris on 05-Jan-14 12:26 AM
Hi Morris,
we do have an application server besides the primary web server. i need to check whether these files can be pushed to app server instead of web server.
Thanks for the info