Welcome to WebmasterWorld Guest from 18.208.187.169

Forum Moderators: open

Message Too Old, No Replies

Setting default value of input file

     
12:13 am on Dec 6, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 7, 2004
posts:89
votes: 0


Hey eveyone,

Does anyone know how to set the default value of a <input type='file'> element?

I thought it would be something like this:

<input name='image' type='file' size='20' value='Default value' />

Cheers
-Harvs-

3:01 am on Dec 9, 2005 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9074
votes: 6


Sorry it took so long to reply to your question Harvs: the button generated by
input type="file"
is dependent on the browser and underlying OS - for example it shows "Browse..." in my Firefox, but the language of the text changes when I use IE on my work machine (which is in French). Other than using ActiveX in IE (which is not recommended), you cannot change the value.