Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you download an MS WORD document?
Message
Information générale
Forum:
Internet
Catégorie:
HTML
Divers
Thread ID:
00717609
Message ID:
00726245
Vues:
14
>I set up an anchor tag to download a file.
>ie: Download myfile
>
>When you hit the link the file downloads after a client DL dialog. However, if you replace myfile.trt with an MS WORD document, the word document opens in a browser window.
>
>I want the word document to download not to open. How do you do that? Someone once showed me a way to modify this feature via a
<meta>
tag attribute but for the life of me I can't remember. Any thoughts?
>
>Neil

I use (in WC):
s = 	[HTTP/1.0 200 OK]  + CHR(13) + CHR(10) +;
	[Mime-version: 1.0] + CHR(13) + CHR(10) +;
	[Content-Disposition: attachment; filename=] +;
        sFileName + CHR(13) + CHR(10) +;					[]  + CHR(13) + CHR(10)			


	response.write(s)
	response.write(sFileString)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform