|
|
Home /
Groups /
ColdFusion Off Topic (CF-OT)
Configuring response header details
How would one translate the following ColdFusion concept directly intoIan Skinner 09/04/08 01:48 P What about with a normal a href link to the content?Erika L. Walker 09/04/08 02:27 P Erika L. Walker wrote:Ian Skinner 09/04/08 03:05 P Ahhh - JavaScript. The link calls a function which forces it to download orErika L. Walker 09/04/08 04:13 P Here's one used with .php ... it is possible to have a .php file on theErika L. Walker 09/04/08 04:15 P For the record - there is a consensus that says it can be a security issue,Erika L. Walker 09/04/08 04:17 P How would one translate the following ColdFusion concept directly into static web content? We have static web pages that link directly to video content and it should be downloaded rather then streamed. Is there some easy way to set this up? Apache on Solaris is the relevant web server. <CFHEADER NAME="Content-Disposition" VALUE="attachment; filename=foo.mp3"> <CFCONTENT TYPE="application/unknown" FILE="c:\foo.mp3"> What about with a normal a href link to the content? On Thu, Sep 4, 2008 at 1:44 PM, Ian Skinner <HOF@ilsweb.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- Erika L. Walker wrote: > What about with a normal a href link to the content? That's what we got, but since the browser recognizes the extension it plays the content rather then downloads it. Apparently the desire is to deliver the video to clients who want it, not just have them play it streaming from our site. Is there any easy way to configure our setup so that the video is downloaded by the browser not played with any plug-in whether or not such a plug-in is available? Ahhh - JavaScript. The link calls a function which forces it to download or at least call the save dialogue box. What that code is directly - I'd have to look up ... but I've clicked on links like that before ... On Thu, Sep 4, 2008 at 3:01 PM, Ian Skinner <HOF@ilsweb.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- Here's one used with .php ... it is possible to have a .php file on the server you use? Might be the best answer ... http://www.webmasterworld.com/forum88/8219.htm On Thu, Sep 4, 2008 at 4:09 PM, Erika L. Walker <elwalker@ruwebby.com>wrote: ----- Excess quoted text cut - see Original Post for more ----- For the record - there is a consensus that says it can be a security issue, how I'm not sure as I don't use this stuff myself and haven't really followed up on any of it. Some people say this: "The best way to solve this problem is to educate your users. Tell them to "Right-click and select 'Save As...'.", or similar. It's simply not possible to 'force' a download in all cases, especially because IE doesn't implement HTTP properly (extraordinary behaviour for a browser!)." On Thu, Sep 4, 2008 at 4:11 PM, Erika L. Walker <elwalker@ruwebby.com>wrote: ----- Excess quoted text cut - see Original Post for more -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||