file input disable open file picker javascript

JavaScript
HTML:
<input type="file" class="openf" />
  
JS:
$('.openf').click(function(e){
      e.preventDefault();
});
Source

Also in JavaScript: