Mozilla browsers don't detect image type for CF templates with jpg or png
Posted on 2004-09-14
This is tricky. Read carefully:
I'm using CFCHART to generate jpg and png images of graphs and pie charts. These images appear on the page correctly but they are not accessible by the user as jpgs or pngs WHEN USING MOZILLA BROWSERS. If you right click on the image, you cannot copy the image. Try the same thing on IE and it works fine.
For other pages of the same app that have static jpg files, the image IS detectable by Mozilla for its correct content-type. The problem for Mozilla is only on the pages where the image is generated by CFCHART.
My guess is that the content-type is set differently when this page is generated by CFCHART and that Mozilla being more by the book is not seeing what it needs to.
Is there a way for me to detect what that content-type setting is for the page?
Here's the CF debug display of some of the related variables - is this a measure of what the server sent to the browser?
HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
On the page that is not generated by CFCHART I notice that the CONTENT_TYPE variable is blank. Is that a clue?