Jquery Image on Hover make input type file
<p>While I hover the icon shows over image. But I want to display the icon like this</p>

<p>And while i click, it should allow to browse files like
<a href="https://i.stack.imgur.com/Ohg6p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ohg6p.png" alt="enter image description here"></a>
</p>

<pre><code>&lt;input type ='file'&gt;
</code></pre>

<p>How can I do this? </p>

<p>I tried like putting the file tag to all, but it didn't worked. How can I do this?</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.profile-img-container {
  position: absolute;
  width:50%;
}

.profile-img-container img:hover {
  opacity: 0.5;
  z-index: 501;
}

.profile-img-container img:hover + i {
  display: block;
  z-index: 500;
}

.profile-img-container i {
  display: none;
  position: absolute;
  margin-left:43%;
  margin-top:40%;
}

.profile-img-container img {
  position:absolute;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" /&gt;
&lt;link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" /&gt;
&lt;script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"&gt;&lt;/script&gt;

&lt;div class="profile-img-container"&gt;
  &lt;img src="http://s3.amazonaws.com/37assets/svn/765-default-avatar.png" class="img-thumbnail img-circle img-responsive" /&gt;
  &lt;i class="fa fa-upload fa-5x"&gt;&lt;/i&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<p><a href="https://jsfiddle.net/sLb3thhy/" rel="nofollow noreferrer">Fiddle</a></p>