Your IP : 3.22.79.165
function uploadFile() { let files = document.getElementById("fileInput").files; const formdata = new FormData(); formdata.append("files", files[0]); $.ajax({ type: "POST", url: "./src/uploadFile.php", data: formdata, processData: false, contentType: false, success: function (params) { let res = JSON.parse(params); console.log(res); }, }); } |