title: How do I upload a file using protractor
body: <p>I'm writing a protractor script that need to upload a JPEG image. I could click on the upload button which opens up a windows file selector. But, then I need to write the path to a file in that File Selector dialog using protractor.</p>
  
  <p>But, i have no idea how it works. I tried just typing the path using <code>sendKeys</code> and it doesn't work so far.</p>
  
  <p>Anyone have an idea how to do this?</p>
  
  <p>Thanks. :)</p>