Change button text value on HTML input type file

Description:

Browsers render by default “Choose file” (or similar, depending on browsers and locale settings) when an input of type “file” is detected.

Solution:

Unfortunately there is no easy solution.

 <input type=”file” name=”inputFile” id=”inputFile” />

This is pretty much all you can do with HTML.

The only solution, but a bit too much overhead, is to add javascript or Flash. Or you think that the default “Choose file” is beautiful and you live with it.

Advertisements

About admin

Just another php developer trying to give something back to the community.
This entry was posted in Best practices and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s