misagh
|
| Posted: 02/15/2002, 9:09 AM |
|
how can I make a file downloadable from my site? I know I should use the "<a href>" tag but when I use It and the file is being downloaded the screen returns an error that says the browser cant distinguish the file
I mean the browser tries to show an EXE file !!
how can I prevent It form doing that?
plz help me
thanks
|
|
|
 |
AudiTT @ MCI
|
| Posted: 02/15/2002, 10:01 AM |
|
Misagh,
I ran into this, and it is veryt common on IIS servers. The directory that has your downloads must be set to scripts, and not Scripts & Execute. If you have the directory set for execute, then your browser will try to run every thing you point at.
Hope this helps.
Bryan
bryan.caddy@wcom.com
|
|
|
 |
misagh
|
| Posted: 02/15/2002, 10:26 AM |
|
I am deeply grateful to you for your help
but could you please guide me how to set my server not to execute a directory or file and just run the scripts?
|
|
|
 |
AudiTT @ MCI
|
| Posted: 02/15/2002, 11:02 AM |
|
Sure...
I am going to assume you are running IIS 4.0, (5.0 is very simular).
Go into Option Pack 4 under the startup menu, and select Microsoft Internet Information Server.
Under that, selecxt Information Server Manager. You can also use MMC (Microsoft Management Console.
Once loaded, expand your site, and select the directory you want users to download from. Right-Click on it a select properties.
When this loads, you will notice at the bottom of that screen, Execute (including script) checked. Check "Script" instead, and this will disable the browser from trying to execute your files. Instead it will force a download box to appear on there screen.
Bryan
|
|
|
 |
|