I got it to work with the following code:
new AjaxUpload('#uploader_button', {
action: 'filename.ashx',
autoSubmit: true,
onSubmit: function(file, ext) {
this.setData({ id: 1, title: docTitle.val() });
},
onComplete: function(file, response) {
}
});
var, onSubmit. , , , , . autoSubmit: false, ...