Skip to main content
New Participant
June 23, 2009
Question

File Upload - Virus check before upload

  • June 23, 2009
  • 1 reply
  • 2209 views

Hi Friends


     We have requirement to check virus before uploading files (CFFILE) . Is there any solution around it? Your help really apprciated.



thanks

    This topic has been closed for replies.

    1 reply

    ilssac
    Inspiring
    June 23, 2009
    I have no idea how you will fill the requirement to virus scan files before upload.  As before the file is uploaded it is still on the client computer thus the virus scan would have to be run on the client which would mean you would have to install what ever tool you requre on each and every client system that will connect to your web application.

    After it has been uploaded to the server is a different matter.  I'm sure there are many enterprise or server based virus scan tools that can easily be used to scan files that are put into specific directories and|or be run from commmand line interfaces, either of which can be easily integrated into a ColdFusion applicaiton.


    jani1971Author
    New Participant
    June 24, 2009

    Thanks for your response.

    Your correct. What I mean that after upload I need to do virus check.

    Currently I'm uploading file in to the root directory, after that I need to do virus check, if i found virus then need to delete the file.

    Can you please suggest me?

    ilssac
    Inspiring
    June 24, 2009

    Nothing in detail.

    Take a look at your prefered virus scanning tool.

    FInd out how that tool allows you to progamically scan files.  Often they can be configured to scan any file that is saved to specific directories and|or be run by command line code.

    Use ColdFusion to either put the file in the specified directory for scanning OR the <cfexecute...> tag to run command line codes.

    Realize there is usually a big difference between virus scan tools desigend to be used by home and office users on their desk top systems and virus scan tools designed to be used on a sever such as you want to here.