coderex coderex - 1 month ago 5
HTML Question

How to rename HTML "browse" button of an input type=file?

How to rename the browse button as "Select the file"? E.g.:

<input type=file name=browse >

Answer

The button isn't called the "browse button" — that's just the name your browser gives for it. Browsers are free to implement the file upload control however they like. In Safari, for example, it's called "Choose File" and it's on the opposite side of whatever you're probably using.

You can implement a custom look for the upload control using the technique outlined on QuirksMode, but that goes beyond just changing the button's text.