Skip to main content
Inspiring
August 2, 2011
Question

CFFILE and virus scan upon upload?

  • August 2, 2011
  • 1 reply
  • 1433 views

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 has been closed for replies.

    1 reply

    Owainnorth
    Inspiring
    August 3, 2011

    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.

    Inspiring
    August 3, 2011

    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

    WestSideAuthor
    Inspiring
    August 3, 2011

    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