Can anyone please tell me how to retrieve formData in the controller method in ASP.net MVC?
<script type="text/javascript">
$(function () {
$('#fileupload').fileupload({
contentType: 'application/json; charset=utf-8',
url: '/Home/GoodSave'
})
.on("fileuploadsubmit", function (e, data) {
data.formData = {
jsonOfLog: $("#ddlDocumentType option:selected").text()
};
});
$("#fileuploadbutton").on("click", function() {
$("#fileupload").submit();
});
});
</script>