I'm putting together a page on one of my sites for downloading of hi-
res press images.
These are JPEGs; but I want them to be downloaded rather than opened
in the browser.
The following code works just fine:
<cfheader name="Content-Disposition" value="attachment; filename=press-
image.jpg" />
<cfcontent type="image/jpeg" file="#ExpandPath("press-image.jpg")#" />
What I want to know is: if I'm serving the file in this method, does
CF load the image into memory and then serve it? Or does it just point
the browser to the relevant location?
The reason I ask is that some of the images are up to 10MB in size,
and I don't want my CF server to be hammered by someone downloading a
few of these at the same time.
The alternative is to zip them all up - very little size gain for
JPEGs, but at least the browser will just download the file, and IIS
will take the strain instead of CF...
Seb Duggan
Web & ColdFusion Developer
e: [email protected]
t: 07786 333184
w: http://sebduggan.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318962
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4