Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize html message <input type=“file”>?

I am trying to customize the message of my input type file that already looks like this:

http://www.hangar-hosting.com/descargas/01.png

i need to vertical align middle that "not file chosen" and change the text of both "choose file" and "no file chosen"

like image 595
user2212243 Avatar asked May 16 '26 07:05

user2212243


1 Answers

you can customize like this:

<style type="text/css">
#upload-file-container input {
   filter: alpha(opacity=0);
   opacity: 0;   
}
</style>

<br />
<label>Please click the Image to Upload a file:</label>
<div id="upload-file-container">
<input type="file" name="photo" />
</div>
like image 59
Phoenix Avatar answered May 17 '26 20:05

Phoenix