I'm using jquery file upload plugin. I added an extra button to tell the server to finalize everything, this is suppose to send an extra parameter as below:
$('.btn-finalize').click(function(){
$('#fileupload').fileupload({
dataType:'json',
formData:{name:'finalize',value:'1'},
url: 'server/php/'
});
});
This click handler is called, but no request is getting sent. why?
The documentation advice to inverse
click
andautoupload
handlers.A testing fiddle