Fetter, Brad wrote: > Hmmm, I tryed to force a download of a jpg file with the following code and > browser tried to open the cfm page in Coldfusion Studio... Is there another > way to force a download? Maybe through a Metatage or Javascript?
You need to add a header for the filename: <cfheader name="Content-Disposition" value="attachment; filename=""4X4JEEP.jpg"""> <cfcontent type="unknown/unknown" file="d:\inetpub\wwwroot\portland\medialibrary\Media\4X4JEEP.jpg" /> Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4