Postman: Required request part 'file' is not present

Try remove 'Content-Type: multipart/form-data...', section of the headers. It solved this for me.


I think the problem lies in the JSON parameter you are sending. In postman you don't need to put the starting and trailing " to represent a parameter as string. And also if you use starting and ending " then inside the JSON( mean for JSON object the properties key and value) you should use '(single quote).


For me it worked to set these variables in application.properties:

spring.http.multipart.enabled=true 
spring.http.multipart.location= /upload