Thank you for your help. I wasn't aware of the cfcontent tag but will be
sure to add a new snippet.

Thanks again,
Shannon


----- Original Message -----
From: "Tim Painter" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 13, 2001 10:57 AM
Subject: Re: File Download


> Create a link to a .cfm page that uses the cfcontent tag to download the
> file.
>
> e.g <a href="download.cfm/filename.ext/?file=Filename.ext">Click here to
> download the file</a>
> (put the filename.ext after the link to the .cfm -- this will make the
> browser default to the actual filename as opposed to download.cfm)
>
> download.cfm:
> <cfcontent type="unknown" file="c:\Directory\#url.file#" deletefile="No">
>
>
> ----- Original Message -----
> From: "W. Shannon Carr" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, April 13, 2001 10:16 AM
> Subject: File Download
>
>
> > I am trying to give the user access to download files that are located
on
> a
> > different hard drive than the webserver directory. I have used
cfdirectory
> > in the past when files were located in the home web server directory.
The
> > cffile would list all files and the user can click on file name which is
a
> > link that will either open file in user's browser or prompt them to save
> > file to disk.
> >
> > My problem now is that the files are located on a different drive and
the
> > url link will not get me out of the home directory to get file. Plus the
> > file list needs to be dynamically generated so user can select from
list.
> >
> > I have tried a few custom tags but didn't have much luck. Any help would
> be
> > appreciated.
> >
> > Thanks,
> > Shannon
> >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to