Hello, Changing the MIME type of a request is easy enough but what about the
filename too? I have an 'attachment.cfm' page which returns an 'attachment',
a JPG for example... It works fine except as far as the browser knows, the
filename is 'attachment.cfm', not 'image.jpg' (or whatever) which would be
nice.. Anyone know of a trick to do this? I have seen it done elsewhere...
Thanks!
blewis - 28 Feb 2005 23:01 GMT
Just change "myFile.jpg" to whatever you want.
<cfheader name="content-disposition" value="inline;filename=myFile.jpg">
<cfcontent ...>