jquery file upload method

jquery file upload method

Hi friends,

I want to upload a image using jquery.... I tried many "googles" ..... Please anyone give me a right tutorial please ....

I coded upto this.....


How to receive files in my php page ? Please help

  1. function addPhoto(){
  2.     var term = $('#photo').val();
  3.     $.post('includes/addPhoto.php',{s:term}, function(data) {
  4.   alert(data);
  5. });
  6.     return false;
  7.     }