> > I have a member-only page with some mp3 downloads on it. I want to
> > force them to download rather than attempt to play in the browser.
>
> There is a way to do it with IIS and Virtual Directories. If
> you create a virtual directory that points to the directory
> where the mp3s are (for
There is a way to do it with IIS and Virtual Directories. If you create a
virtual directory that points to the directory where the mp3s are (for example
"mp3download") and add the following to the header in IIS, the file will be
served as a download and there will be no work for the CF server.
the Coldfusion documentation tells you everything you need to know :)
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=0232.htm
Specifically use cfcontent to set the mime type then cfheader like this:
Rick
~~~
Subject: How to force a download rather than play?
I just know the minute I ask this i'm going to remember the answer, but ..
..
I have a member-only page with some mp3 downloads on it. I want to force
them to download rather than attempt to play in the browser.
(these users arent very com
something like this
On 7/7/07, Mike Kear <[EMAIL PROTECTED]> wrote:
>
> I just know the minute I ask this i'm going to remember the answer, but
> .. .
>
> I have a member-only page with some mp3 downloads on it. I want to
> force them to download rather than attempt to play in the browser
I just know the minute I ask this i'm going to remember the answer, but .. .
I have a member-only page with some mp3 downloads on it. I want to
force them to download rather than attempt to play in the browser.
(these users arent very computer savvy and i'd rather not have to
teach them right-cl
Are you displaying it using cfcontent or some other way?
On 9/25/06, Will Tomlinson <[EMAIL PROTECTED]> wrote:
> I just built a cfdocument that's in a cfc. I tested it and it seems to work
> fine for me with XP - IE, FF.
>
> dave (the worm) tested it out, and he says it's trying to download a cfm
I just built a cfdocument that's in a cfc. I tested it and it seems to work
fine for me with XP - IE, FF.
dave (the worm) tested it out, and he says it's trying to download a cfm file
when it loads as a pdf. Flashpaper works fine tho'.
Anybody have any ideas?
Thanks,
Will
~~
Have you tried saving it even though it sez it's a .cfm anyway? I
foggily remember it saying it was a .cfm but when you said OK it
actually downloaded the correct CSV file (in my case)... other than
that, Im oot of ideas, soz :-(
> Well in the case of the Jpg, I am trying to download it goes
> d
-Talk
Subject: RE: force a download
Same again, just coming in at the tail end of this (having deleted all
previous messages) this any good? Remember spending a day a few
months ago on this and this seemed to work for all versions of IE that
we tested it on (5 and above I
not working...The Cfheader doesn't like the lack of
> a " in the value field.
>
>
>file="d:\inetpub\wwwroot\portland\medialibrary\Media\4X4JEEP.jpg"
> deleteFile="No">
>
>
>
> > Hmmm, I tryed to force a download of a jpg file wi
Well I got to stop hanging, but now it tries to download it as a cfm page.
-Original Message-
From: Fetter, Brad [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 10:32 AM
To: CF-Talk
Subject: RE: force a download
Yeah the first option fixes the error, but then it just hangs
Yeah the first option fixes the error, but then it just hangs!
-Original Message-
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 10:26 AM
To: CF-Talk
Subject: RE: force a download
Just popping in on this conversation, (sorry if someone already said
Just popping in on this conversation, (sorry if someone already said this),
but have you tried:
or
Steve
-Original Message-
From: Fetter, Brad [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 1:16 PM
To: CF-Talk
Subject: RE: force a download
Hmm still not working...The
Hmm still not working...The Cfheader doesn't like the lack of a " in the
value field.
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 8:59 AM
To: CF-Talk
Subject: Re: force a download
Oops.in the CFHEADER tag don
;CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 8:43 AM
Subject: force a download
> Hmmm, I tryed to force a download of a jpg file with the following code
and
> browser tried to open the cfm page in Coldfusion Studio... Is there
another
> way to force a download? Maybe t
.com
-
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
- Original Message -
From: "Fetter, Brad" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 8:43 AM
Sub
Fetter, Brad wrote:
> Hmmm, I tryed to force a download of a jpg file with the following code and
> browser tried to open the cfm page in Coldfusion Studio... Is there another
> way to force a download? Maybe through a Metatage or Javascript?
You need to add a header for the filename:
Hmmm, I tryed to force a download of a jpg file with the following code and
browser tried to open the cfm page in Coldfusion Studio... Is there another
way to force a download? Maybe through a Metatage or Javascript?
-Original Message-
From: Fetter, Brad [mailto:[EMAIL PROTECTED]
Sent
Thanks Jochem I will try that..
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 1:41 AM
To: CF-Talk
Subject: Re: force a download [was: SQL concat]
Fetter, Brad wrote:
>
> I have video, and image library on our intranet and we w
Fetter, Brad wrote:
>
> I have video, and image library on our intranet and we want to have a
> hyperlink that will allow the
> user to download the file to their hard drive without having right click and
> select file save as. Is there an easy way to do this?
Use cfcontent with the mime type "ap
: Re: force a download - .txt file
You could just do:
- Original Message -
From: "Bryan Stevenson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 4:57 PM
Subject:
Trying to force a download using cfcontent and input from last week thread.
Below is full download page's code.
1. Works properly, forcing download with a txt, a pdf, .xls, .doc
2. If item is .jpg, get in IE6 "An error occurred while attempting to open
the file. Windows NT error number
You could just do:
- Original Message -
From: "Bryan Stevenson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 4:57 PM
Subject:
-R
-Original Message-
From: Wurst, Keith D. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 4:52 PM
To: CF-Talk
Subject: force a download - .txt file
Hi everyone. I am trying to force a "save as" box in IE when a user clicks
on a link that creates a .txt file. What keeps
.com
-
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
- Original Message -
From: "Wurst, Keith D." <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 1:52 PM
Subj
Hi everyone. I am trying to force a "save as" box in IE when a user clicks
on a link that creates a .txt file. What keeps happening is that the browser
will open the .txt file and display it - when what I really want is for the
user to be prompted with a "save as" box. Has anyone figured out a way
27 matches
Mail list logo