<inputid="file_info"type="file"/>
varfd=newFormData(document.getElementById("file_info"));
fd.append("CustomField","Thisissomeextradata");
$.ajax({
url:"stash.php",
type:"POST",
data:fd,
processData:false,//telljQuerynottoprocessthedata
contentType:false//telljQuerynottosetcontentType
});