Computing Magazine

Change Button Text Value on HTML Input Type File

Posted on the 10 July 2014 by Akahgy

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.


Back to Featured Articles on Logo Paperblog

Magazine