Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

Scan for viruses while uploading file like image,doc etc in C# MVC

Hi Experts,

How to scan for viruses while uploading file like image,doc etc .  I am using c# and MVC.
Any help is greatly appreciated.

Thanks in advance!
Avatar of David Favor
David Favor
Flag of United States of America image

You won't use C# as a virus scanner, you'll use an existing virus scanner for this.

Virus scanners require continual database updates of virus signatures.

You'll only do what you say, if you're writing your own virus scanner + will be somehow maintaining your own signature database.
A virus is an executable that has to be executed..  it could be using a .jpg vulnerability.. either way the file has to be fully uploaded before you can check it.  either by using your virus scanners on demand scan options
every antivirus will have different command line options and different return status codes.
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Thank you for your suggestions!

When we try to upload any malicious files to gmail then it wouldn't allow you to do that. I need something like that. When somebody try to upload a file with malicious content then it should not go to the server. I am wondering of something like this is possible?

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank for all the options!! Still looking at them.