RE: Netscape allows script downloads???

2001-06-06 Thread Dylan Bromby

did you look at the .CFM file that downloads and actually see CF code? or is
it all HTML?

-Original Message-
From: David Grabbe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 9:33 AM
To: CF-Talk
Subject: Netscape allows script downloads???



OK, So I have some RealAudio files on my website, and I have 2 different
types of links for each file:  one link starts the RealAudio player, the
other link is so the user can just download the file.  For both of these
links I point to a script keeps track of how many times this particular RA
file has been downloaded.  In IE, everything for the download works fine --
the user right-clicks, selects Save file as, and we're all good.  In
Netscape, I do a right-click Save link as, and instead of the script
executing and then pointing to the correct RA file, the *script* is what
suddenly becomes available for download -- not good, because it contains
SQL, DSN info, etc.  I then realized that (in Netscape) I could right-click,
Save link as and download ANY .cfm file, whereas IE executes the script
first and lets you download the resulting rendered web page.  Is this an IIS
setting?  Any ideas on how to keep my scripts from being downloaded???

TIA


Cheers,
David
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Netscape allows script downloads???

2001-06-06 Thread David Grabbe


Well, that is somewhat of a consolation -- even though it still has the .cfm
extension on it, the pages don't actually contain the CF content.

.so in regards to the original message, it isn't actually downloading the
script (radl.cfm):  it is downloading the RealAudio file, but renaming it as
the radl.cfm page (i discovered this when i realized the supposed script
file that i had downloaded was over 3 megs!).

The question becomes:  for Netscrape, is there a way to change the name?
I've included the code for radl.cfm below; all it does it update the
database and then redirect to the RealAudio content (either as a download or
as a live stream).  So even though the content of the download is actually a
RealAudio file, Netscape still puts the script name as the name of the
file.any ideas?


-- radl.cfm 
cfquery name=Update datasource=dsn maxrows=1 
Update table
SET num_access = num_access+1
WHERE name='#name#'
/cfquery



cfif m IS 'listen'
cflocation url=http://www.domain.com:7070/ramgen/#name#;
cfelseif m IS 'dl'
cflocation url=http://www.domain.com/realaudiocontent/#name#;
/cfif


-



Cheers,
David






-Original Message-
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:47 PM
To: CF-Talk
Subject: RE: Netscape allows script downloads???


did you look at the .CFM file that downloads and actually see CF code? or is
it all HTML?

-Original Message-
From: David Grabbe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 9:33 AM
To: CF-Talk
Subject: Netscape allows script downloads???



OK, So I have some RealAudio files on my website, and I have 2 different
types of links for each file:  one link starts the RealAudio player, the
other link is so the user can just download the file.  For both of these
links I point to a script keeps track of how many times this particular RA
file has been downloaded.  In IE, everything for the download works fine --
the user right-clicks, selects Save file as, and we're all good.  In
Netscape, I do a right-click Save link as, and instead of the script
executing and then pointing to the correct RA file, the *script* is what
suddenly becomes available for download -- not good, because it contains
SQL, DSN info, etc.  I then realized that (in Netscape) I could right-click,
Save link as and download ANY .cfm file, whereas IE executes the script
first and lets you download the resulting rendered web page.  Is this an IIS
setting?  Any ideas on how to keep my scripts from being downloaded???

TIA


Cheers,
David
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists