title: Dropzone.js : Upload file without Browse dialog in php-webdriver integration tests
body: <p>i am using <code>dropzone.js</code> in my project , what i want to do is add file manually to queue without opening the file browser dialogue, the dropzone is already initialized on the element with class .imageDropzone on the page and i am trying to run the following script to add the file ,</p>
  
  <pre><code>Dropzone.autoDiscover=false;
  var myZone=Dropzone.forElement('.imageDropzone');
  var fileList=$("input[accept='image/jpg,image/gif,image/png,image/jpeg']")[0].files;
  fileList.name="imageUploadTestJPG.jpg";
  fileList.type="image/jpeg";
  fileList.size=30170,
  fileList.path="http://mysite/img/imageUploadTestJPG.jpg";
  fileList.mozFullPath="http://mysite/img/imageUploadTestJPG.jpg";
  fileList.accept="image/jpg,image/gif,image/png,image/jpeg";
  
  console.log(fileList);
  myZone.addFile(fileList);
  </code></pre>
  
  <h3>why am I doing this</h3>
  
  <p><strong>1</strong>. I am working with php-webdriver and I need to test the upload functionality, </p>
  
  <p><strong>2.</strong> The file browser dialogue that is opened after clicking on a file type input is OS dependent, different in different OS, and I cant shift control to that window, so I wanted to skip this process of opening the file dialogue by clicking on it and want to add the file manually javascript/jquery and keeping <code>autoProcessFiles=true</code> so that as soon the file is added the upload process starts, but I am unable to solve it.</p>
  
  <p>when i try to call <code>Dropzone.addFile()</code> i receive the following </p>
  
  <blockquote>
    <p>TypeError: Argument 2 of FormData.append does not implement interface
    Blob</p>
  </blockquote>
  
  <p>I event tried another way i.e </p>
  
  <p><strong>1</strong>. Add the file path to the file input on which the dropzone was initialized because dropzone binds an <code>change eventlistener</code> with all the <code>file inputs</code> which are initialized with dropzone and as soon the path to file is provided the <code>change event listener</code> triggers and starts uploading the file, but trying to modify the value for file input with dropzone initialized raised security exception.</p>
  
  <p><strong>2</strong>. Moreover the <code>&lt;input type=file&gt;</code> is made hidden by the <code>dropzone.js</code> script when initialized and php-webdriver does not allow to interact with hidden elements so i am stuck with this, any help or guidance would be appreciated.</p>