Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the "Value" of input type ="file" 1

Status
Not open for further replies.

timesign

Programmer
May 7, 2002
53
US
Hi,
Is there any way to change the value "Browse" in input type file from Browse to someting else.
I tried setting "Value=Select file..." and it does not seem to change.

<CENTER>
<FORM ENCTYPE="multipart/form-data"
method="POST" ACTION="/servlet/testServlet">
<INPUT TYPE="file" NAME="TextFile" Size="30">
<BR>
<INPUT TYPE="submit" VALUE="Upload File">
</FORM>
</CENTER>

Thanks
 
Hi mate,

This is not possible to do with the actual browse button, but there are hacks to get round it.

Do a search on this forum, I posted code a while back that does this.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Thanks Wullie, I will try to find it.

Just to clarify: when using a multipart form to upload a file, typically the input type "file" is used. It creates a button that says on it "Browse..." Next to it is a text box.

This allows the user to click on browse, select the file they want to upload etc.

It seems to me that without extensive "hacking" there is no way to change the word "browse..." to something else that might be more useful under a given situation.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top