I wrote this tag up to do file pushes of all kinds. The example below will force open a show/save dialog. If you want to display in the browser window itself, To send a txt file straight to the browser for display (maintaining your formatting) change variables.DisplayType to "inline".
<!--- the tag call ---> <cfset variables.FilePath="z:\myfiles\ftp\"> <cfset variables.FileName="mysecretfile.txt <cfset variables.MIMEType="text/plain"> <cfset variables.DisplayType="attachment"> <cf_pushfile FilePath=#variables.FilePath# FileName=#variables.FileName# MIMEType=#variables.MIMEType# DisplayType=#variables.DisplayType#> <!--- cf_pushfile ---> <cfset variables.FileToPush=attributes.FilePath&attributes.FileName> <cfheader name="content-disposition" value="#attributes.DisplayType#; filename=#attributes.FileName#"> <cfcontent type="#attributes.MIMEType#" file=#variables.FileToPush#> I adapted the above from the tutorial here: http://mysecretbase.com/How_To_Display_Protected_Files.cfm HtH, -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192245 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54