Possible Duplicate:
How can I upload files asynchronously with JQuery?
I'm submiting my forms like this.
var url = event.currentTarget.action;
var values = $(this).serialize();
$.post(url, values, function (data) {
//some code
});
Now I have a form with a file upload input. With this code the file isn't uploaded.
How can I include the file into this ajax request ? I don't want to use any plugin if possible(except jQuery).