Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to download Word DOC files
Message
 
To
07/01/2000 12:57:02
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00314599
Message ID:
00315621
Views:
16
Craig,

This is happening because you are probably linking a HREF directly to a .DOC format.
The reason is the MIME type is automatically specified by the server to be "application/ms-word"
If the client computer has "application/ms-word" registered in the HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/msword
key, then that application is envoked.

If you don't specify the content type, IIS 4.0 automatically add's the MIME header for you (you're not seeing it, but it's there).
You can override the MIME header in ASP using

< % RESPONSE.ContentType = "SomeFormat/Unknown" % >

Since the SomeFormat/Unknown will not have a registry entry, the user will be prompted to save the file. IE will invoke the Save
dialog for any MIME type it doesn't understand or doesn't have an application associated with it under HKEY_CLASSES_ROOT\MIME\Database\Content Type

HTH,
Ed


>I need to download Word Doc files and would like to preserve their native format if possible. If I use A HREF to the document, it opens Word in the browser. I don't want that. I want the file actually downloaded. Is there anyway I can do this?
Previous
Reply
Map
View

Click here to load this message in the networking platform