title: How to upload multiple files to the page
body: <p>I am trying to upload multiple files to the page with</p>
  
  <pre><code>&lt;input id="dropInput" type="file" multiple&gt;
  </code></pre>
  
  <p>For one file it is as simple as:</p>
  
  <pre><code>driver.FindElement(By.Id("dropInput")).SendKeys(@"path-to-file");
  </code></pre>
  
  <p>As a user I can click Choose Files button and select number of files (with Ctrl) so in Open dialog I can see sth like: <code>"file-1" "file-2"</code></p>
  
  <p>From the script it does not work. I have tried different combinations of SendKeys argument:</p>
  
  <ul>
  <li><code>@"file-1" + " " + @"file-2"</code></li>
  <li><code>@"file-1" + ", " + @"file-2"</code></li>
  <li><code>"\"path\\to\\file-1\" \"path\\to\\file-2\""</code></li>
  <li><code>Path.GetFullPath(file-1) + " " + Path.GetFullPath(file-2)</code></li>
  <li><code>"\"" + Path.GetFullPath(file-1) +  "\" \"" + Path.GetFullPath(file-2) + "\""</code></li>
  </ul>
  
  <p>The input accepts the last file only. The same with sending keys several times. For the last example I have got an exception: </p>
  
  <pre><code>unknown error: path is not absolute: "file-1" "file-2"
  </code></pre>
  
  <p>I am out of ideas.</p>
  
  <p>I'd like to know if there is any simple solution for that before I'll start injecting jQuery scripts to the page under test.</p>
  
  <p>Please advise.</p>
  
  <p>Cheers,
  Przemek</p>