Doing it like below returns the image in the browser?

test.cfm

<a href="" test.jpg</a>

download.cfm

<cftry>
<cfheader name="content-disposition"
value="attachment;filename=#url.image#">

<cfcontent type="application/unknown"
file="#expandPath('..')&'\documents\'&url.image#" deletefile="no">

<cflocation url="" addtoken="no">

<cfcatch type="any"> </cfcatch>
</cftry>

Butch Zaccheo wrote:

> when I run the
> script, it just loads the image in the browser window without initiating the
> dialog box.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to