I\'m using jQuery and Ajax for my forms to submit data and files but I\'m not sure how to send both data and files in one form?
I currently do almost the same with b
Or shorter:
$("form#data").submit(function() { var formData = new FormData(this); $.post($(this).attr("action"), formData, function() { // success }); return false; });