>> Is there a way to serve content via a .cfm file... >> <cfheader name="Content-Disposition" value="inline; filename=#article.filename#"> >> <cfcontent type="#article.mime_type#" file="#article.link#" /> >> If you click Save As it want's to save it as "serve.cfm.htm"
We always force a download by setting the mime type to "application/unknown" because you can never tell how the browser will respond to the "correct" mime type. Many times people running Windows have inadvertently reassigned the application type and it may open in a program they really don't want. This forces a download since the browser doesn't know what else to do with it. <CFHEADER NAME="Content-Disposition" VALUE="attachment; filename=#dlQry.FileName#"> <CFCONTENT TYPE="application/unknown" FILE="#filestore#/#dlQry.FileName#"> Dennis Powers UXB Internet - A website Design and Hosting Company P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844 W: http://www.uxbinternet.com W: http://www.ctbusinesslist.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344968 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm