Skip to main content
Inspiring
Aug 2, 2011 9:08 PM UTC
Question

CFFILE and virus scan upon upload?

Hi,

I want to upload files using cffile to a temp directory, and then kick off some virus scan process and return a response to the client or something to that effect.

How can I do this?

Since file uploading is common what are others in the CF world doing to virus scan files?  I know I can use <cfexecute> tag to call some process but I haven't been able to find any vendor solution where they offer some command line scanner.

Any help appreciated...

Thanks,

-Westside

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Owainnorth
    Inspiring
    Aug 3, 2011 7:02 AM UTC

    As you say, it's a case of uploading the file, using CFEXECUTE then somehow checking the output. What vendors did you check? AVG seem to have a commandline tool.

    Translate
    Inspiring
    Aug 3, 2011 7:14 AM UTC

    On any computer I have ever used, the background scanner scans all files before they are written to disk automatically.  Why would one need to take any special action here?

    --

    Adam

    Translate
    WestSideAuthor
    Inspiring
    Aug 3, 2011 6:03 PM UTC

    If a user is trying to upload a file, and that file contains a virus or something, I'd like to let the user know "something".  It seems that if there was a command line scanner that I could execute the process after the file is uploaded and ideally provide a response to the user.  

    Another example might be Yahoo email, When you upload/attach a file I believe it scans the file and tells you it's virus free.  So I think for me, it's more about the user experience.  I understand that having virus protection on the machine should prevent viruses but there isn't any feedback to the user at the time of upload and I think that is what I was trying to achieve.

    -Westside

    Translate