(Redirected to the list so all can benefit)

I have had a decent amount of success using CFCONTENT for this task like so:

<CFIF NOT Compare(Trim(ContentType), '')
        OR NOT Compare(Trim(ContentSubType), '')>

   <CFCONTENT type="application/octet-stream"
                file="#AttachmentsDir#\#ServerFile#">

<CFELSE>

   <CFHEADER NAME="Content-Disposition"
                VALUE="inline;
                filename=""#FileName#""">
   <CFHEADER NAME="Content-type"
                VALUE="#ContentType#/#ContentSubType#">
   <CFCONTENT type="#ContentType#/#ContentSubType#"
                file="#AttachmentsDir#\#ServerFile#">

</CFIF>

-Cameron

--------------------
Cameron Childress
ElliptIQ Inc.
p.770.460.7277.232
f.770.460.0963

> -----Original Message-----
> From: Kevin Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 15, 2000 5:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: AntiVirus Scanning & CFFILE
>
>
>
> I have a question for you.  How do you accomplish the downloading.  Is it
> through a browser>  What tag do you use? I have a FTP program that I wrote
> and I am struggling on how to let users download a file from it.
> I have the
> location of the filed and a hyperlink but I can't seem to get them to be
> able to download the file when they click on it.
>
>
> ----- Original Message -----
> From: "Cameron Childress" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 15, 2000 1:24 PM
> Subject: AntiVirus Scanning & CFFILE
>
>
> > An app I'm working on allows users to upload files into the app (using
> > CFFILE).  They then get placed into a file repository, and users are
> allowed
> > to download them back off our server.
> >
> > In order to protect both our server and our users, I'd like to
> scan these
> > files for Viruses on upload.  I searched the Tag Gallery for something,
> and
> > came up with nothing.  I guess we could install Norton or something like
> > that on the server and just let it scan the files as they get
> saved to the
> > HD, but I'd prefer to be able to scan them and programmatically
> notify the
> > user if the file they are uploading contains a virus.
> >
> > Any ideas?
> >
> > -Cameron
> >
> > --------------------
> > Cameron Childress
> > ElliptIQ Inc.
> > p.770.460.7277.232
> > f.770.460.0963
> >
> >
> --------------------------------------------------------------------------
> ----
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> >
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to