[thelist] Forcing Download of Files With a Particular Extension

gregory.john.toland at census.gov gregory.john.toland at census.gov
Fri Jan 26 10:36:31 CST 2001


I have a directory in my web site where I have allowed directory browsing.
I would like to configure the web server so when the user clicks on a
particular file (*.TM) the dialog box pops up asking where to save the
file.  I am running IIS 4.0 on WinNTS 4.0 SP6a.  I went into the properties
of my web site and clicked on the "HTTP Headers" tab.  I then clicked on
"File Types" and added the following MIME Type:
     Associated Extension: TM
     Content Type (MIME): application/x-msdownload

When I click on the file the file automatically appears in the browser.  It
just opens it up instead of asking me to save the file.  Must I re-boot the
server or am I going about this the wrong way?

NN 4.7 give me a dialog box entitled, "Unknown File Type".  It asks me
whether I want to pick an
application or save the file (which is what I want).  IE 5.01 SP1 and IE
5.5 open the file in the browser (which is what I don't want).  Help!!!

I thought I read somewhere that IE "snuffs" the contents of the file with
an unknown MIME type.  Since the contents of these TM files are ASCII data
it then opens up the file in the browser for the user to view.  Is there
any way around this in IE?

Gregory J Toland
Sr. Systems Architect
CHM, Inc.
(301) 457-8058
tolan002 at census.gov





More information about the thelist mailing list