[RESOLVED] [2005] Firefox - Image - Save as
Using a handler to display image.
<img alt="" src="Captcha.ashx" />
In Firefox, when a web page is displayed and right-click performed to save image, this is the filename given:
Captcha.ashx.jpg
How do I get it to display "untitled" as demonstrated in Internet Explorer and not the name of the handler?
-MPippz
Re: [2005] Firefox - Image - Save as
<img alt="" src="Captcha.ashx" title="" />
Re: [2005] Firefox - Image - Save as
Hi Timeshifter,
Although I truly do appreciate you sending a response, I'm still very much in the dark about what you're trying to convey to me. :o
-MPippz
Re: [2005] Firefox - Image - Save as
The title property of an image. It's also what you see when you hover over an image.
Re: [2005] Firefox - Image - Save as
No dice.
The name of the handler page is still being displayed.
"Captcha.aspx.jpg"
Re: [2005] Firefox - Image - Save as
You have to do this in your .ashx.
Response.AddHeader("Content-Disposition", "filename=untitled.jpg");
Re: [2005] Firefox - Image - Save as
Hey Mendhak,
Thanks for the response.
It's totally frustrating trying to write code that is compliant and compatible with all the browsers out there. Makes my head spin sometimes.
Thread resolved.
-MPippz