$('body').on('submit', '#form', function(e) {
e.preventDefault();
var $that = $(this),
formdata = new FormData($that[0]);
$.ajax({
url: '../new.php',
type: "POST",
data: formData,
contentType: false,
processData: false,
dataType: "json",
success: function(json) {
location.reload(true);
}
});
});