Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send ASCII delimited file for a browser to downlo
Message
De
26/01/2001 08:59:34
 
 
À
26/01/2001 07:14:25
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00468740
Message ID:
00468994
Vues:
17
Your second choice (file) sounds better. I thought that it had to do more with setting context type but I tried text/plain and a couple of others and couldn't get it to work.

So I'll create a txt file, I guess with a weird extension so the browser does not attempt to show it but to download it instead. When should the temp file be deleted to make sure that they had enough time to download it (it's fairly short) and that it does not linger too long on the server for security purposes?

Thanks Guy

>>>>>>>>>>>>
One way is to output with response.write without any HTML tags. The user can then choose File/Save As to save the file.
You can also output to a temp file on the server and redirect to that file. You'll have to clean up at some point. If the file contains sensitive data, other users could have access to it before you delete the file.
>>>>>>>>>>>>


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform