Possible Duplicate:
How can I upload files asynchronously with jQuery?
jQuery Ajax File Upload
I use $.post to send my form data to a php page for adding to database. I wanted to know can I use the same way to upload files? or I have to use JQuery plugins for doing that? here is my code:
$.post("demo.php",{name:$("#name").value,family:$("#family").value},function(result){
$("#message").html(result);
});