Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Downloading WORD files to save not to view
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00717723
Message ID:
00718265
Vues:
23
>Hi,
>
>If you place a word file in a link, ie:
>
>
> <a href="mywordfile.doc>download my word file<a>
>
>
> the file word file will download and **open** in the browser for viewing. I want to download it and just save it to disk without viewing it. How do you do this?
>
>Neil

You need to set the header on the page returning the document....
HTTP/1.0 200 OK
Mime-version: 1.0
Content-Disposition: attachment; filename="thefile.doc"
...


You can then use filetostr() or even just write the field.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform