If you haven't found a solution, try using the add function:
$('#fileupload').fileupload({
add: function (e, data) {
data.formData = {
fname: data.originalFiles[0].name,
chunks: Math.ceil(data.originalFiles[0].size/maxChunkSize),
chunk: $('#chunk').val()
};
data.submit();
}
});
You may need to watch the value of $('#chunk') and call the piece of code above when it changes.
I used something like this inside an AngularJS directive, and get inspired from: https://github.com/blueimp/jQuery-File-Upload/wiki/Submit-files-asynchronously#overriding-the-add-callback