2

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 3

4

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

Sign up to request clarification or add additional context in comments.

2 Comments

This method may trigger a browser's clickjacking detection. en.wikipedia.org/wiki/Clickjacking
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.
1

You can't directly change it without some nifty CSS/JavaScript or using Flash.

1 Comment

that is not entirely true. You CAN work around it without flash, it just requires CSS and javascript.
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.