title: Remove upload file from input jQuery
body: <p>HTML code: </p>
  
  <pre><code>&lt;img src="../img/attach.png" id="upfile1" style="cursor:pointer"&gt;
      &lt;input type="file" id="file1"  name="file1" style="display:none"&gt;
  </code></pre>
  
  <p>jQuery: </p>
  
  <pre><code>$("#file1").change(function(){
          var arr = $('#file1')[0];
          var fileName = $('#file1')[0].files[0].name;
          var fileName2 = $('#file1')[0].files[0].size;
          fileName2 /= 100000;
          var size = fileName2.toFixed(2);
          if(fileName){
              $(".attach").html("1. &lt;span class='fileName'&gt;"+ fileName + "&lt;/span&gt; " +size+ "Mb Loaded &lt;img src='../img/bin.png'&gt;").css("display","block");
              $(".attach img").on("click", function() {
                  delete arr.files[0];
                  console.log(arr.files[0]);
              });
          }
      });
  </code></pre>
  
  <p>I need to remove upload file after clicked on img... Can I do it use jQuery or I need some library such a Basic plus UI. Thanks a lot.</p>