Simple CSS only File Input Styling

Simple example of how to type a file input using only CSS.

HTML

<input type="file" id="imgupload" style="display:none"/> 
<button id="OpenImgUpload">Image Upload</button>

JavaScript

$('#OpenImgUpload').click(function(){ $('#imgupload').trigger('click'); });