tags:

views:

22

answers:

2

i have an input tag...

<input type="file" name="upload">

for browsing it makes the button vith value "browse"(in mozilla)

the question is: how can i change the name of that button? i want it to have the name "select" instead of "browse".

Thanks

+2  A: 

Unfortunately the button text of an <input type="file"> is controlled by the browser, and cannot be changed, as far as I know.

In general, fancy file uploaders are often flash-based. However, if you are ready for a challenge, you may want to check out the following QuirksMode article for a few CSS + JavaScript tricks in this direction:

Daniel Vassallo
A very nice fancy uploader is SWFUpload: http://www.swfupload.org
Pekka
A: 

I haven't tried, but can you set the input to display:none and then use background images?

Catfish