0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.22.79.165


Current Path : /var/www/website/bkmh/js/
Upload File :
Current File : /var/www/website/bkmh/js/dashboardimg.js

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);
    },
  });
}