Try creating your stats page then cflocation to another page that pushes the
file out.
~Mahcsig



On Tue, Oct 13, 2009 at 9:49 AM, 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.
>
> As soon as I insert the following, it no longer shows the page:
>
> <cfheader name="Content-Disposition"
> value="attachment;filename=#UseFileName#">
> <cfcontent file="#UsePath#/#UseFileName#" deletefile="yes"
> type="application/vnd.ms-excel">
>
> I've tried various cfflush and cflocation combos but can't find a way
> around it. Is there some straight forward technique for doing both things
> from one page?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:327138
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