var xhr = new XMLHttpRequest(); fd = new FormData(document.getElementById("save")); fd.append('file', $('#file')[0].files[0]); xhr.open("POST", "http://localhost/TestWebService/", true); xhr.onreadystatechange = handler; xhr.send(fd);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)