Forum Moderators: open

Message Too Old, No Replies

default text for input type :file

         

manju

6:53 am on Jun 6, 2001 (gmt 0)



Hi all,
i would like default text to appear in the input type file when i load the page. i tried it using the value attribute, but the value doesnt appear on the page. i'm using IE 5 browser.

can anyone please help me.
thanx
manju

Xoc

2:18 am on Jun 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



manju, welcome to WebmasterWorld.

Unfortunately, there is no way to do that. The problem is that if you can fill in the file value, then you could submit the form through JavaScript, and automatically upload a file with no user intervention at all. To prohibit that, browsers don't let you automatically fill textbox portion of the file control.