Welcome to WebmasterWorld Guest from

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
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' />


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
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.