House of Fusion
Home of the ColdFusion Community

Search cf-ot

November 22, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Off Topic (CF-OT)

Configuring response header details

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ian Skinner
09/04/2008 01:48 PM

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">

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Erika L. Walker
09/04/2008 02:27 PM

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 -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ian Skinner
09/04/2008 03:05 PM

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?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Erika L. Walker
09/04/2008 04:13 PM

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 -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Erika L. Walker
09/04/2008 04:15 PM

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 -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Erika L. Walker
09/04/2008 04:17 PM

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 -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists