1$(function(){
2 $('#uploadBTN').on('click', function(){
3 var fd = new FormData($("#fileinfo"));
4 //fd.append("CustomField", "This is some extra data");
5 $.ajax({
6 url: 'upload.php',
7 type: 'POST',
8 data: fd,
9 success:function(data){
10 $('#output').html(data);
11 },
12 cache: false,
13 contentType: false,
14 processData: false
15 });
16 });
17});
18