when the form form data comes from the foreground, the multipartFiles in request has data (an array), but using MultipartFile file to fetch it gives null, advice on how to get the contents out of it.
this is the value in debug
the following is the foreground js input form form
var formData = new FormData();
formData.append("networkServiceType", networkServiceType);
formData.append("networkServiceName", networkServiceName);
formData.append("networkServiceAdd", networkServiceAdd);
formData.append("networkServiceTel",networkServiceTel);
formData.append("networkServiceLongitude",networkServiceLongitude);
formData.append("networkServiceLatitude",networkServiceLatitude);
for(var i = 0; i < fileList.length; iPP){
formData.append("file[]", fileList[i]);
}
console.log(formData);
$.ajax({
type: "POST",
url: projectname + url,
data: formData,
contentType: false,
processData: false,
mimeType: "multipart/form-data",
success: function (data) {
if(data.code ===0){
alert("", function(index){
vm.reload();
});
}else{
alert(data.msg);
}
}
});