title: Passing file with filename and other parameters to upload files using jquery
body: <p>I am using Jquery to upload files. The problem I intend to pass some more parameters with the selected file. But, I experienced that processData attribute value should be set to false if passed data is not to be processed as string. When I do that, I cannot pass any other values with data passed with jquery ajax. </p>
  
  <p>Below is the code I am using:</p>
  
  <pre><code>$.ajax({
      url: 'php/upload.php',
      data: data,         // here I want to pass more data like { filedata:data, op1 : val1, op2:val2 }
      cache: false,
      contentType: false,
      processData: false,
      type: 'POST',
      success: function(data){
          alert(data);
      }
  });
  </code></pre>
  
  <p>Please share your ideas if you have been able to find a workaround for this situation. Or if you know any other way of passing data. Please share. </p>