C:\fakepath\*.* in Ajax and jQuery
This question already has an answer here:
You are sending by ajax filename, not it content:
fbndoc: $('#fbndoc').val()
 If you want to upload file with it content by ajax better use FormData , for example with jQuery:  
var fd = new FormData($('#fbndoc').get(0));
fd.append("CustomField", "This is some extra data");//add all you data here like this
$.ajax({
  url: "stash.php",
  type: "POST",
  data: fd,
  processData: false,  // tell jQuery not to process the data
  contentType: false   // tell jQuery not to set contentType
});
                        链接地址: http://www.djcxy.com/p/19622.html
                        
                        
                    