Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forcing IIS to download, not render a page
Message
De
06/09/2000 11:29:11
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Forcing IIS to download, not render a page
Divers
Thread ID:
00412978
Message ID:
00412978
Vues:
50
I'm running IIS 5.0 on W2K Server. I have an app that creates simple text files and I'm trying to give users a link (< a href= ... >myfile < / a >) to these files so they can download them from their browsers.

The problem is that IIS is giving them the raw text as a rendered page instead of the download dialog poping up.

At first I thought the virtual folder these files were in must have Execute rights. But Execute was set to NONE (as seen from the MMC properties dialog on the folder).

So I thought maybe if I go to the Windows Explorer and manipulate security privileges I can get some good results... No GO. I've tried dozens of settings in both the MMC dialogs and the Windows Explorer Properties|Security dialogs including rebooting the Server on multiple occasions just in case something goofy was happening in memory.

I've tried renaming the extentions of the text files to .TXT .EXP .DATA .< < nothing > > and even .EXE.

Even the .EXEs are rendered as text back at the browser. <s>

The same result occurs in Browsers running on Windows and MACs.

What is causing the text files to be rendered as a page instead of a download?

Guy
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform