title: How to open file upload prompt when text link is clicked?
body: <p>This works in FF6 and IE 7, 8 and 9, but not Chrome/Safari or Opera:</p>
  
  <pre><code>    &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
          $(function() {
  
              $('#uploadFile').click(function(e) {
                  $('#fileUploadField').click();
                  e.preventDefault();
              });
  
          });
      &lt;/script&gt;
  
      &lt;input type="file" name="something" style="display: none" id="fileUploadField" /&gt;
      &lt;a href="" id="uploadFile"&gt;Upload File&lt;/a&gt;
  </code></pre>
  
  <p>I'm guessing this is due to browser security restrictions. Does anyone know of any cross browser solution to achieve this?</p>