title: How to upload a file in Selenium with no text box
body: <p>I have been looking for a solution to uploading a file in Selenium 2.</p>
  
  <p>The problem is that the web element that I'm trying to upload is usable in two ways:
  Drag and drop, or click on a button.  There is no field entry box.  Not that I haven't tried using sendKeys.  I've tried it on the button, and all surrounding elements.</p>
  
  <p>The second part to this problem is that I write on a Windows machine, but the automation occurs on a Linux machine.  That means that AutoIt won't work.  This is the HTML of the upload box.</p>
  
  <pre><code>&lt;div class="up-target" id="up-drop-zone"&gt;
      &lt;div class="up-drop-zone-pre hidden"&gt;
          &lt;p&gt;Please choose a folder to upload&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="up-drop-zone-decor"&gt;
          &lt;p&gt;Drop one or more files here&lt;/p&gt;
          &lt;p&gt;or&lt;/p&gt;
          &lt;button name="uploadFile" class="upload"&gt;Select Files&lt;/button&gt;
          &lt;input type="file" id="up-drop-zone-input" name="files[]" multiple="true"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am using Java, and open to other methods outside of Selenium (However, I do only have select maven repositories).</p>
  
  <p>Thank You!</p>