This commit is contained in:
2019-03-07 10:16:53 +01:00
parent 1c278c681c
commit 0ed8d67073
3 changed files with 17 additions and 13 deletions

View File

@ -5,13 +5,6 @@ var sendImage = (file) => {
var form = new FormData();
form.append("file", file[0]);
request.open("POST", "../upload/", true);
eadystatechange = function() {//Call a function when the state changes.
if(http.readyState == 4 && http.status == 200) {
alert(http.responseText);
// window.location = window.location.href.replace("edit/", "");
}
}
console.log("sending");
request.send(form);
}