Posted on: 5/14/2014 5:49:55 PM | Views : 371

Hello
I want to send image file to asp page with javascript
with this code I getting the image file
var FD = new FormData(); var photoInput = document.getElementById("photoUP"); var Photo = photoInput.files[0]; FD.append("Pic", Photo); var MyRequest = new XMLHttpRequest(); MyRequest.onreadystatechange = function () { document.getElementById('END').innerHTML = "<i class='fa fa-spinner fa-spin'></i>"; if ((MyRequest.readyState == 4) && (MyRequest.status = 200)) { if (MyRequest.responseText = "true") { document.getElementById('END').innerHTML = ""; } else { document.getElementById('END').innerHTML = "F"; } ...

Go to the complete details ...