Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

setting value of file input field

0 views
Skip to first unread message

Enrico Lyb

unread,
Feb 3, 2003, 7:43:35 AM2/3/03
to

hello,

i'd like to use a file input field <INPUT id="File1"
type="file" name="File1"> where the user can select a
file. if the filename is entered manually or by browsing i
can access the filename by the value property. but i also
like to set the value to different default values by
clicking on different buttons. but setting the value with
File1.value = "TEST"; during runtime does not work. the
field stays empty.
how can i change the value of the file input field?

thanks
enrico

Igor Tandetnik

unread,
Feb 3, 2003, 9:55:07 AM2/3/03
to

AFAIK you cannot. Value field of <INPUT type="file"> element is
read-only, a security measure.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken

"Enrico Lyb" <l...@vepro.com> wrote in message
news:060001c2cb81$de3d1540$d3f82ecf@TK2MSFTNGXA10...

0 new messages