> Hello, > > I'm trying to use <cfcontent> on Coldfusion 5 to display files. For > security purposes, I cannot link directly to the files. > > I'm trying to get this to work for any type of file. Currently it > works for .doc and .xls files but not PDF files. > > The page does not throw any exceptions just displays a blank PDF page. > When I right click that link and save it to my computer, it works just > fine. > > Is there a bug with cfcontent in CF5? > > Example code below: > > <cfheader name="Content-disposition" > value="inline;filename=#filename#"> > > <cfcontent type="Application/Unknown" file="#fileName#">
I would just like to add that is there anyway to dynamically determine the MIME type when using cfcontent? I have tried to hardcode the MIME Type to handle PDFs and the files still do not display in the browser. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257591 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

