title: Primefaces fileUpload js API
body: <p>I'm using primefaces library in my application. I need change users picture on click by image. Can I hide primefaces file uploader component and work with it with javascript? I.E. can I use it from javascript like in following code?</p>
  
  <pre><code>fileUploader.openFile();
  fileUploader.sendFile();
  </code></pre>
  
  <p>Any suggestions?</p>