title: Programmatically uploading a file
body: <p>I'm using the jQuery file upload plugin which has an <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/API" rel="noreferrer">API</a> to programmatically upload files. The documentation writes:</p>
  
  <pre><code>$('#fileupload').fileupload('add', {files: filesList});
  </code></pre>
  
  <p>The problem is that I don't know what <code>filesList</code> should be. I have tried the following unsuccessfully:</p>
  
  <pre><code>$('#fileupload').fileupload('add', {files: ['/Users/bob/Desktop/test.png']});
  </code></pre>
  
  <p>What should <code>filesList</code> be exactly?</p>