могу дать это
$.postForm = function(uri, form, onSuccess) {
var formElement = $(form).get(0);
var formData = new FormData(formElement);
var onAjaxSuccess = onSuccess || $.noop;
return $.ajax({
url: uri,
type: 'POST',
data: formData,
cache: false,
dataType: 'json',
processData: false,
contentType: false,
success: onAjaxSuccess
});
};
$('#test-form').submit(function(event) {
event.preventDefault();
$.postForm('/demo/echo.php', this).success(function(data) {
console.log(data);
});
});
дальше сам =)