Bruce, Rodney wrote:

> The problem with using "application/octet-stream",  is that the user doesn't
> get the option to save the file.
> 
> I want the user to be able to save the file just not open it in the browser.
> The purpose is for the user to save as PowerPoint slide,  to be added to
> presentations later.  


Forgot to mention that you will also need a content-disposition header.
<cfheader name="Content-disposition" value="attachment; 
filename=#filename#">
<cfcontent type="application/octet-stream" file="#filename#">

If this doesn't work, shoot the customer for using a browser that does 
not adhere to the suggestions made in RFC 2616, paragraph 19.5.1, which 
is still the formal definition of the HTTP protocol.

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to