1jQuery.ajax({
2 url: 'php/upload.php',
3 data: data,
4 cache: false,
5 contentType: false,
6 processData: false,
7 method: 'POST',
8 type: 'POST', // For jQuery < 1.9
9 success: function(data){
10 alert(data);
11 }
12});
13