/ / upload files
uploadFiles = () = > {
// console.log(111)
this.field.validate();
let file1 = document.getElementById("file1");
const formData = new FormData();
formData.append("crowdName", this.state.inputVlaue);
formData.append("file", file1.files[0]);
console.log(formData.get("crowdName"))
console.log(formData)
if(!file1.files[0]){
Toast.error("")
return false;
}
console.log(file1.files[0])
Ajax.Fetch({
type:"post",
url:"/crowdUpload/updateCrowd.html",
data:formData,
success:(data) => {
Toast.success("")
console.log("")
console.log(data)
// location.href="customerGroup.html"
}
})
}