On Tue, Oct 13, 2009 at 12:49 PM, John Pullam <[email protected]> wrote:
>
> I have an app in CF8 that needs to show a web page and then download a file 
> that my user requested. Nothing too difficult. The page essentially tells 
> them some stats on the file and acknowledges the request. I can't find any 
> way to do both though.

You need to use a separate CFM to "download" the file with that
cfheader/cfcontent stuff.

In your "show a web page" just put a meta refresh to the cfm page that
retreives the file.  This is how almost every system out there does it
(like sourceforge)

<meta http-equiv="Refresh" content="2; url=getfile.cfm">

The number "2" is the number of seconds to pause before attempting file download

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327153
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to