Hi, I have a form with one upload control and some text fields. i am sending the formdata values to the controller with ajax. Here am facing one problem i.e am able to get the formdata values in IE and Mozilla but not in chrome. Please let me know the reason. Here is my code snippet. var fileUpload = $("#file").get(0); var files = fileUpload.files; var fileData = new FormData(); for (var i = 0; i < files.length; i++) { fileData.append(files[i].name, files[i]); } fileData.append("textfield1", $('#textfield1').val()); fileData.append("textfield2", $('#textfield2').val()); fileData.append("textfield3", $('#textfield3').val()); fileData.append("textfield4", $('#textfield4').val()); xhr = $.ajax({ url: 'Home/Index', type: 'POST', dataType: "JSON", contentType: false, // Not to set any content header processData: false, // Not to process data data: fileData }) Thanks in advance.
FormData
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)