How to scan files during uploads with the use of FileUpload asp.net server control

1.5k views Asked by At

In continuation to my previous research at this link : Security Risks or concerns with the use of FileUpload control of asp.net - and suggested solutions

I need to know how to Scan files during upload, also how to intimate user if file is virus affected and abort the operation.

Any answer for this highly appreciable.

Thanks in advance!

Edited - In addition to above, we have McAfee Antivirus installed on our servers. I heard that there is some APIS for this work for Symantac Antivirus but I am not sure about McAfee antivirus.

1

There are 1 answers

2
Pekka On

I need to know how to Scan files during upload, also how to intimate user if file is virus affected and abort the operation.

You mean a virus scan while a file is being uploaded from the client? This is hardly possible using standard tools.

Scan the file after it has been uploaded; delete the file and show the user a reject message if anything malicious was found.