title: How to send additional data to jQuery File Upload Plugin?
body: <p>This would seem stupid but i can't seem to understand the documentation.
  I'm talking about <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">This</a> plugin for file upload.</p>
  
  <p>Now according to the documentation there's an option :</p>
  
  <blockquote>
    <p><strong>formData</strong></p>
    
    <p>Additional form data to be sent along with the file uploads can be set using this
     option, which accepts an array of objects with name and value properties, a function 
     returning such an array, a FormData object (for XHR file uploads), or a simple object.
     The form of the first fileInput is given as parameter to the function.</p>
    
    <p><strong>Note</strong>: Additional form data is ignored when the multipart option is set to false.</p>
    
    <p>Type: Array, Object, function or FormData Default: A function
    returning the form fields as serialized Array:</p>
  
  <pre><code>function (form) {
      return form.serializeArray();
  }
  </code></pre>
    
    <p><strong>Example:</strong></p>
    
    <p>[
        {
            name: 'a',
            value: 1
        },
        {
            name: 'b',
            value: 2
        } ]</p>
  </blockquote>
  
  <p>Which i fail to understand what i'm suppoused to do with that.</p>
  
  <p>This is how i initialize the plugin :</p>
  
  <pre><code>$('#add_image_upload').fileupload({
              dataType: 'json',
      sequentialUploads: true,
      formData : getDate
  });
  </code></pre>
  
  <p>And this is my attempt to the function :</p>
  
  <pre><code> function getDate(){
  
  //if user didn't selected a date
  if(!selectedDate || selectedDate=="undefined"){
  selectedDate = "1/1/"+$('#timeline').html();
  }
  var date= new Array(selectedDate);
  return date;
  }
  </code></pre>