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!
C#

Avatar of undefined
Last Comment
RadhaKrishnaKiJaya

8/22/2022 - Mon
David Favor

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.
David Johnson, CD

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.
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.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Scott Fell

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
RadhaKrishnaKiJaya

ASKER
Thank for all the options!! Still looking at them.