title: How to download the content/image/data of input type file?
body: <p>I wanna know how to download the data/content/image in an input type file</p>
  
  <p>Note: It doesnt have to be submitted. just a direct download from a button in which he can be able to download the content of an input type file</p>
  
  <p>How can i do this?</p>
  
  <p>sample code</p>
  
  <pre><code>$(".downloadupinvoice").click(function(){
     var file = document.getElementById('id-input-file-2').files[0];
  
     //Put some code here to produce a file ?
     window.location=window.URL.createObjectURL(file);
  })
  </code></pre>
  
  <p>i cant seem to preview the file but it is not downloading also i notice in the address bar that it display like this </p>
  
  <p>blob:69c7ee1a-ba44-4234-9216-68b3c86b9c96</p>