Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Downloadin a file
Message
 
To
09/04/2000 14:39:39
Christian Bellavance
Université du Québec à Hull
Hull, Quebec, Canada
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00350515
Message ID:
00357473
Views:
12
That's different. Content is interpreted on the client side based on it's MIME type. If you want to force it to download, you can use
the following ASP page (you'll need ASP on IIS 4.0+ for this to work:)

The following will always prompt to download a word document (test.doc) instead of opening it:
< %
Response.AddHeader "Content-Disposition", "attachment;filename=test.doc;portable-filename=test.doc"
Response.ContentType = "application/octet-stream"
% >
< !-- #INCLUDE FILE="test.doc" -- >

You'll need to remove the spaces between < % and < ! for it to work

HTH,
Ed

>I does not work or I did something wrong. If I create a hyperling to a .txt file than the file is not to be download but it printer on the browser.
>
>How do I make that file to download?
>
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform