Security in IE prevents you from doing almost anything to a "file" type input
control. The best I could come up with was putting this style on it:
style="width:1; BORDER-RIGHT: white thin solid; BORDER-TOP: white thin
solid; BORDER-LEFT: white thin solid; COLOR: white; BORDER-BOTTOM: white thin
solid; BACKGROUND-COLOR: white"
This does what you say, and the user can't see the text or the textbox. It
makes the button look a little weird though. And no, you can't hide the file
control and use another button to "script click" it. I tried. =) IE security
prevents it.
"Ryo" wrote:
Hello !
I want to do a button on a page that propose to choose a file (on the client
side) and get the path of the file.
I know that there are the HTMLInputFile and the FileUpload control, but I
don't want that the user can see the location of the file in a textbox.
A solution ?
Thanks.