Green Parot wrote: > I would just like to add that is there anyway to dynamically determine the > MIME type when using cfcontent?
where filepath is the full physical path to a file you wish to determine the mimetype of... #getPageContext().getServletContext().getMimeType(filePath)# should work to get the mime type. As for your problem.. I do what you're doing all the time. Here's what my CFCONTENT looks like: <CFCONTENT deletefile="Yes" file="#filePath#" type="application/pdf"> Now, for some reason, my code actually copies the ORIGINAL pdf file to a temporary location, then deletes it when it's accessed. I don't know why I did that, but maybe it's because I was having a hard time getting it to display the original PDF file without the "deletefile" option. Worth a shot for you. Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:257665 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

