Browsing file using iis as web server.

From: Papanii Okai (papanii58_at_hotmail.com)
Date: 10/26/04


Date: Tue, 26 Oct 2004 03:13:41 -0700

Hi guys,
            I am a newbie when it comes to IIS. I am currently running
Windows XP Pro which runs IIS 5.1. I am having a little trouble when it
comes to CGI scripting. I have a program that dynamically generates html
WebPages whenever run. Within these pages I have a <a href="file on
drive">link</a> link to files on my local hard drive (specifically
pictures). But for some reason after the page is generated, when I press the
link to the file, it doesn't open. here is a example of the html code
used...

 <a href ="file:///C:\pics\pics1\DSC03565.JPG"target="_blank">
<img src="file:///C:\pics\pics1\DSC03565_thumb.jpg">DSC03565.JPG
</a>

The funny thing is that if I take the file path
'file:///C:\pics\pics1\DSC03565.JPG' and put it in internet explorer it
opens up the image for me. Another strange thing is if I save the source of
the generated html page as another file it works for me. At first I thought
it was the program that was generating the page but if I put a url say
'www.Microsoft.com' it works for me. I really don't know how to proceed from
here. I have come to the conclusion that it is some setting in IIS because
if I run this on Apache, it works fine. Is there any setting to enable me
access files on a local drive this way? Does anyone have any ideas or
thought on this matter? Help will be greatly appreciated.

--Papanii



Relevant Pages

  • Re: Intranet problem - 404 and 405 errors
    ... I presume the HTML has a FORM that is accessing the EXE. ... "Scripts" or "Scripts and Executables" Execute Permission, ... Both issues you describe can be directly diagnosed from the IIS web log ... Contact the Web site administrator if you believe that this request should ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASP is not working
    ... That will display the actual error experience by IIS. ... >> I'm assuming you are referring to classis ASP and not ASP.NET? ... >> The Microsoft Office Web Components Black Book with .NET ... >>> plain HTML; I see the error 4 times and the HTML correctly. ...
    (microsoft.public.dotnet.general)
  • Re: How can I display the calendar - limited user?
    ... I do use IIS. ... I have never created a server side script page like ASP, ... it's my lobby to create HTML pages with client side script - they work just ...
    (microsoft.public.windowsxp.customize)
  • Re: asp problem in IIS5.1
    ... > I have windows XP with IIS 5.1. ... > with HTML Pages.but it is not working with ASP pages. ... > Server Application Error ...
    (microsoft.public.inetserver.asp.components)
  • Problem executing program in IIS
    ... This has all worked well using IIS and Windows 2000 on several different ... The interface program that communicates with the HTML IS RUNNING and has ... The interface program uses the CMD shell to copy a file and to execute the ...
    (microsoft.public.inetserver.iis)