title: Ajax Upload using valums ajax upload plugin inside a form
body: <p>i just came across this <a href="http://valums.com/ajax-upload/comment-page-9/#comment-2756" rel="nofollow noreferrer">ajax upload plugin</a> and i wish to use it inside a form as shown in the <a href="http://valums.com/wp-content/uploads/ajax-upload/demo-jquery.htm#" rel="nofollow noreferrer">demo page example 3</a>. For some reason i am not able to make it work. I am not sure what parameters come into the function. For example here is my sample code.</p>
  
  <pre><code>$(document).ready(function(){
  
          var upload = new AjaxUpload('property_i',
          {
          action: 'submitproperty.php',
          autoSubmit: false,
          onSubmit : function(file , extension){
          return false;
          }
          });
  
          var upload_data = upload.setData({
          'propertytype':'propertytype'
          });
  
         });
  </code></pre>
  
  <p>Now the ID used in the AjaxUpload function should be ID of the  or of the Entire form. Also how do i use setData method. Any suggestions or links will be very helpful. Thanks</p>