Sign in to follow this  
Followers 0
BruceCopperField

IE8 and File Upload

1 post in this topic

The example script given in "_IEFormElementSetValue ()" manual for <input type=file> no longer works in IE8. I am looking for a way to work around.

In IE8 the security setting has been changed that we are no longer able to send keystroke to the <input type=file>'s input box. It is now readonly. Because Micro$oft thinks that allowing the users to key in the full path directly would expose the full path name to the server if the document simply use keydown handler to intercept the keystrokes.

It seems now that we must click the browse button and key in the filename in that Choose file window. I know the title of that choose file Window is "Choose File" in English Windows. But my script need to be executed in Windows of various language. I cannot hard code the title string into my script.

Is there a portable way to send keystroke as in the old days?

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0