I know there are other question like this around, but the solutions are not working for me. Can someone help me figure out how pass parameters using a POST request with the jquery-file-upload library, specifically when the send
option is being used:
$('#fileupload').fileupload('send', {files: [file]} )
.success(function (result, textStatus, jqXHR) {
console.log("Success...");
});
I've tried the following:
$('#fileupload').fileupload('send', {
files: [file],
formData: {'fileType': fileType}
})
and also:
$('#fileupload').fileupload({formData: {'fileType': fileType} });
$('#fileupload').fileupload('send', {files: [file]})
and I've tried putting formData
in the format of formData: [{name:'fileType', value:fileType}]