I have a form with several inputs and other field.
I have a save button, and when I click, I send the form with ajax with jQuery :
$.ajax({
type: "POST",
dataType: "json",
url: $('#ajaxUrl').val(),
data: "action=save&" + form.serialize()
});
So, when I have only simple input like text, select etc.. it's ok. But if I have an input type file, I can't retrieve my file. $_FILES is always empty.
How can I do that as simply as possible ?
Edit : I don't want to use a plugin :)