General information
Category:
Internet applications
Title:
Forcing IIS to download, not render a page
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only