Virus Checking Uploaded Files

khenn 07 Jan, 2010
Does anyone worry about this? I have a form that allows users to upload files. My hosting company uses Clam Anti-Virus which will scan the files as soon as they are uploaded, but I was wondering if there was any way to actually inspect the file before it is written to the file system and then if a virus is found, return with an error message to the user.

Thanks,
Kris
GreyHead 07 Jan, 2010
Hi Kris,

As far as I know there is not way to inspect the file before it is uploaded - I can't imagine how that would work.

Bob
GreyHead 07 Jan, 2010
Hi Kris,

Looks interesting but I still don't see how it will improve on the scan your host already does?

Bob
khenn 07 Jan, 2010
It's not the fact that it will improve the scan that the host does, but that user experience will be improved. The file is actually scanned while it is in the temp area before it is actually stored to the upload directory. Plus, you can return a meaningful message back to the user to let them know that the file they just uploaded contained a virus, and therefore did not upload successfully.

Kris
This topic is locked and no more replies can be posted.