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
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of RadhaKrishnaKiJaya

ASKER

Thank for all the options!! Still looking at them.
C#
C#

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).

98K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo