In HTML you can define in a form an input-field for uploading files. This input-field has a button attached, that pops up a file-chooser-dialog. How can I set the text for this button?
3 Answers
It involves a few hacks because browsers don't really want you to do it. Here is a nice tutorial on how to change the appearance and text of the browse button: Click here
2 Comments
Powerlord
This method may trigger a browser's clickjacking detection. en.wikipedia.org/wiki/Clickjacking
Jeremy B.
It is definitely not the most optimal solution, but to my knowledge it is the only way to get the browser to let you do anything to the file input.
You can't directly change it without some nifty CSS/JavaScript or using Flash.
1 Comment
Jeremy B.
that is not entirely true. You CAN work around it without flash, it just requires CSS and javascript.
Or you just give up and use something nice like SWFUpload. Why use all that faked overlay when you may as well just replace the upload altogether.