Last post Apr 07, 2006 06:20 AM by webbes
Apr 03, 2006 06:41 PM|liming22102|LINK
Apr 04, 2006 06:23 AM|webbes|LINK
Well I can't offer you exactly what you want BUT.... if you use this:
string disheader = "inline; filename=\"" + filename + "\"";
You'll see that when you do "Save as Image" in the browser, your filename will show up instead of the thumbnail.axd.jpeg.
You can see it working at http://www.waterwijkers.nl/bip ...
Only just noticed that IE is not always behaving as expected..... it doesn't save this header as part of the cache. So if the image comes out of the browser cache it doesn't work anymore... sigh... all other browsers behave as they should....
Apr 04, 2006 04:50 PM|liming22102|LINK
Apr 05, 2006 04:24 AM|webbes|LINK
I implemented this because you asked this and I thought it would be nice indeed if someone would get the original image name instead of myhandler.axd.jpg.
So this is a great example of how input from others can lead to improvements... unfortunately not many users give me any feedback at all... sigh...
Apr 07, 2006 06:20 AM|webbes|LINK
I've put the blaim of not handeling the naming correct on IE to soon. It's the other browsers that corrected MY mistake and IE didn't.
I've changed the code and it does work perfectly in all browsers now..