|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Serving files with cfcontent
Hi,
I am trying to use cfcontent and cfheader to serve audio files to my users. My code is: <cfset filePath = "D:\xxx\yyy\test.wav"> <cfheader name="Content-Disposition" value="attachment; filename=test.wav"> <cfcontent type = "application/octet-stream" file = "#filePath#" deleteFile = "No"> This works fine in Netscape (brings up the save as dialog as I want).. but in IE it just shows the raw binary output of the wav file in the browser. My question is: How do I get it so that both Netscape and IE will always bring up the "save as" dialog for whatever file type I am trying to serve? |
|
#2
|
|||
|
|||
|
This is definitely a browser issue and not really a CF one. I'd suggest trying different MIME types to see if any of them prompt IE to open an application (ie Winamp) instead of displaying the raw data.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Serving files with cfcontent |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|