Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CFCONTENT & FILE DOWNLOAD ISSUE

2 views
Skip to first unread message

Graham Pearson

unread,
Sep 23, 2003, 9:03:42 AM9/23/03
to Justin Lamoureux
I am having a different issue with cfcontent. Under cf5 I in one project I use cfheader and cfcontent to send a file to users which are not in a Web Accessible directory. I have just upgraded to cfmx and now when a user clicks on a filename to download (Example: mylogo.gif) In the File Download Dialog Box I get Filename: fileread.cfm File Type: CFM File From: Server.domain instead of the actual filename of mylogo.gif If I click the save as button and rename the file to mylogo.gif it would be displayed in the photo editor. If I leave the filename as fileread.cfm it would have the binary for the gif file format.

Any Suggestions on how to allow the File Download Dialog box be with the correct information.

> After I call the CFCONTENT the following CFLOCATION does not work. The file is downloaded properly but nothing I put after CFCONTENT seems to process. Is there a way either stop the CFCONTENT after the file is loaded or force a page refresh after CFONTENT?
>
> <!--- Download file to Client --->
> <cfif form.DownLoadFile is not "">
>
> <cfheader name="Content-disposition" value="attachment; filename=""#form.DownLoadFile#""">
>
> <CFCONTENT FILE="#AbsoluteDirectory##FTPDirectory##form.DownLoadFile#" type="text/html">
>
> <cflocation url="nextpage.cfm">
>
> </cfif>

0 new messages