Discussion:
Ajax Upload using valums upload plugin
idrish laxmidhar
2010-02-09 06:49:00 UTC
Permalink
Hi , i just came across this ajax upload
plugin<http://valums.com/ajax-upload/comment-page-9/#comment-2756>and
i wish to use it inside a form as shown in the demo
page <http://valums.com/wp-content/uploads/ajax-upload/demo-jquery.htm#>example
3. 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.

$(document).ready(function(){

/* Example3 */
var upload = new AjaxUpload('property_i',
{
action: 'submitproperty.php',
autoSubmit: false,
onSubmit : function(file , extension){
return false;
}
});

var upload_data = upload.setData({
'propertytype':'propertytype'
});

});

Now th ID used in the AjaxUpload function should be ID of the <input type =
file .../> or of the Entire form. Also how do i use setData method. Any
suggestions or links will be very helpful. Thanks
--
Regards,
idrish laxmidhar
Loading...