macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Upload with Virus Check

Subject: Upload with Virus Check
From: "rhellewell"
Date: Fri, 24 Aug 2007 20:52:16 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
I use the cffile action="upload" to upload a file to the server. The server has 
virus checking set on all file writes (McAfee Antivirus in this case). If a 
virus is found, the file is deleted.

 So the sequence is
 - upload file
 - check cffile upload status parameters for successful upload
 - ensure file was not deleted due to viral content

 At what point does the cffile.filewassaved parameter get 'set'. Before or 
after the anti-virus check? Does the write process include the process of virus 
checking the file?

 Is it::
  upload, write file, set cffile.filewassaved = yes, DeleteFileIfVirus
 or
 upload file, DeleteFileIfVirus, NoFileWrite, so set cffile.filewassaved=no

 Thanks...Rick..


<Prev in Thread] Current Thread [Next in Thread>