Or for an even neater URL...
<A HREF="download.cfm/filename.ext">Download</A>
download.cfm
<CFCONTENT type="unknown"
file="c:\Directory\#ListLast(CGI.REQUEST_URI,'\')#" deletefile="No">
> 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists