PBM: Authentication popup when uploading from a web dialog

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vince C.

    PBM: Authentication popup when uploading from a web dialog

    Hi.

    I've created a web application that requires authentication on all pages. One of
    my pages is an ASP script that runs in a modal web dialog. It has a form to
    upload a file. To prevent a new window from being spawned I've put an IFRAME as
    the target of the form submission:

    <form action="Image.a sp" method="post" enctype="multip art/form-data"
    target="Results ">
    ...
    <input type="file" size="30" name="ImageFile ">
    ...
    </form>
    <iframe src="about:blan k" name="Results" frameborder="0" ></iframe>


    When I pick up a file from My Documents I get an authentication prompt as soon
    as I submit the form. I don't get that authentication prompt when I run the
    script in a normal window (i.e. in a non dialog window). If I select a file from
    anywhere beyond the wwwRoot folder I don't get the authentication prompt either.

    Is it normal or is it a bug in MSIE? I would have sworn IIS had nothing to do
    with client-side file access when uploading files!

    I'm running Windows XP SP1 with IE6 SP1.

    Thanks,
    Vince C.


  • Matt Foster

    #2
    Re: Authentication popup when uploading from a web dialog

    <iframe src="about:blan k" name="Results" frameborder="0" ></iframe>

    What happens if you change the src to an ASP page which has the validation
    in it?


    "Vince C." <none@hotmail.c om> wrote in message
    news:uhjXWMcGEH A.3776@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi.
    >
    > I've created a web application that requires authentication on all pages.[/color]
    One of[color=blue]
    > my pages is an ASP script that runs in a modal web dialog. It has a form[/color]
    to[color=blue]
    > upload a file. To prevent a new window from being spawned I've put an[/color]
    IFRAME as[color=blue]
    > the target of the form submission:
    >
    > <form action="Image.a sp" method="post" enctype="multip art/form-data"
    > target="Results ">
    > ...
    > <input type="file" size="30" name="ImageFile ">
    > ...
    > </form>
    > <iframe src="about:blan k" name="Results" frameborder="0" ></iframe>
    >
    >
    > When I pick up a file from My Documents I get an authentication prompt as[/color]
    soon[color=blue]
    > as I submit the form. I don't get that authentication prompt when I run[/color]
    the[color=blue]
    > script in a normal window (i.e. in a non dialog window). If I select a[/color]
    file from[color=blue]
    > anywhere beyond the wwwRoot folder I don't get the authentication prompt[/color]
    either.[color=blue]
    >
    > Is it normal or is it a bug in MSIE? I would have sworn IIS had nothing to[/color]
    do[color=blue]
    > with client-side file access when uploading files!
    >
    > I'm running Windows XP SP1 with IE6 SP1.
    >
    > Thanks,
    > Vince C.
    >
    >[/color]


    Comment

    Working...