PBM: Authentication popup when uploading from a web dialog

V

Vince C.

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.asp" method="post" enctype="multipart/form-data"
target="Results">
...
<input type="file" size="30" name="ImageFile">
...
</form>
<iframe src="about:blank" 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.
 
M

Matt Foster

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

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

Vince C.

Matt Foster said:
<iframe src="about:blank" name="Results" frameborder="0"></iframe>

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

What do you mean exactly? Do you mean server-side or client-side validation
script?

Vince C.
 
Y

Yan-Hong Huang[MSFT]

Hello Vince,

Has the problem resolved by chaning the src to an asp page? If you have any
more concerns on it, please feel free to post here.

Thanks.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
V

Vince C.

Yan-Hong Huang said:
Hello Vince,

Has the problem resolved by chaning the src to an asp page? If you have any
more concerns on it, please feel free to post here.

Ah, Ok, I understand now. Well, the problem vanished by itself. I'm not sure
what the cure was. Anyway I browsed my web from a remote machine until I got to
the upload dialog. I selected and sent a file on the latter machine and I didn't
get the prompt. I returned and did the same on my laptop where the web with
upload dialog is and I did not get the authentication prompt anymore :-|. Wow!
Understand the one who can!

Rather confusing isn't it? Well, I keep getting strange things like this since I
began developing for the web under Windows XP... I had no such troubles under
Windows 2000.

See you when I can reproduce the problem.
Vince C.
 
Y

Yan-Hong Huang[MSFT]

Hi Vince,

Sure. Please feel free to post in the community when you meet it again. We
are here to support you at your convenience. For the problem I think you
may pay attention to:
1) any change in IIS
2) any hotfix or windows update you just applied?

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top