Requestbody with formstrin is always empty
I am sending a post requst via axios
axios.post("path", formData ,{ headers: { 'Content-Type': 'multipart/form-data' } });
The payload of this request contains the file content as well as the name,...
But
@PostMapping("path")
fun importCSV(@RequestPart files: MultipartFile?) = service.someaction(files)
files is always null (I am using Rest api I in Kotlin).