var formData = new FormData(document.getElementById("addform")); $.ajax({ url: "url", type: "post", data: formData, processData: false, contentType: false, success: function (data) { }, error: function (e) { } });