User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,463 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,733 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 791 | Replies: 1
Reply
Join Date: Jun 2007
Posts: 9
Reputation: sumit_indian has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 1
sumit_indian sumit_indian is offline Offline
Newbie Poster

how to use anti-virus in project

  #1  
Sep 14th, 2007
Hello guys,

I am new in asp.net. I am developing a asp.net project using c#.It has a feature that allow user to upload their files . I want to use anti-virus as scan tool while a user upload his files
I also want to restrict user just to allow only pdf, excel ans doc files. please help me .............
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: Bellevue, WA
Posts: 1,548
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Rep Power: 8
Solved Threads: 51
Sponsor
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: how to use anti-virus in project

  #2  
Sep 14th, 2007
For limiting the files, you could check to make sure that the extensions are within a certain list (e.g. .pdf, .xls, .xlsx, .doc, .docx) and only upload ones that match. Note, this will only work based on extension, not actual data.

For the anti-virus, you might be able to tell it to scan the files as soon as they finish uploading. See if your AV has a command line interface you could execute.

Sorry, I don't know the details of how to implement either of these yet. The first one should be fairly easy to find on google though...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 2:17 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC