here is the answer to your question.   I saw it in a post a couple of days
ago.

Yes ... you need to modify the HTTP Header Content type. If the content type
is known to the browser ... it will open the associated application or
whatever. If you change the content type to 'application/unknown' the
browser
will present the download dialog.

In CF take a look at:

<CFCONTENT  TYPE="file_type" DELETEFILE="Yes/No" FILE="filename"
RESET="Yes/No">

In ASP take a look at:

Response.ContentType

Cheers,
Bill


In a message dated 8/12/01 1:54:01 PM Eastern Daylight Time,
[EMAIL PROTECTED] writes:


> Hi All,
> I'm trying to create a page where users can download
> files from.
> What i have discovered was that if you have a certain
> file type associated to a certain program and there is
> an href to download that type of file, what will
> happen is that it will automatically open the file
> with the associated program.
> for example:
> if i have mp3's asssociated to winamp...if there is a
> link <A HREF="http://song.mp3/";>download song</A> and i click
> it, it will open my winamp player and start playing
> the song rather than popping up the save as window so
> that i can save the file.
> my questions are:
> Is this discovery correct? and is there a way to
> prevent it from opening the associated program but
> rather popping up the save as window?
> If anyone has any clue please let me know!
>
----- Original Message -----
From: "Mike Brunt" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 7:33 PM
Subject: Siily question re CFDIRECTORY and downloads


> I have a large mp3 collection that I want to make downloadable to good
> friends.  I have CFDIRECTORY listing the files OK but I am having
difficulty
> making them downloadable.  I know this is really silly question but how do
I
> allow users to download the files by clicking them?
>
> Kind Regards - Mike Brunt
> Tel: 562.790.8631
> Instant Messaging Handles: -
> AIM (AOL): MediaEmbee
> MSN: [EMAIL PROTECTED]
> Yahoo: MediaEmbeeYH
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to