The problem is that you are setting the Content-Type
by yourself, let it be blank. Google Chrome will do it for you. The multipart Content-Type
needs to know the file boundary, and when you remove the Content-Type
, Postman will do it automagically for you.
More Related Contents:
- Max limit of MultipartFile in Spring Boot
- Working Soap client example
- Connection to Db dies after >4
- Spring Boot Adding Http Request Interceptors
- POSTing a @OneToMany sub-resource association in Spring Data REST
- Spring boot @ResponseBody doesn’t serialize entity id
- Unable to connect to Postgres DB due to the authentication type 10 is not supported
- Spring Boot: Cannot access REST Controller on localhost (404)
- How to pass JVM options from bootRun
- Can a spring boot @RestController be enabled/disabled using properties?
- Unable to create JAXBContext creating my wsdl
- While using Spring Data Rest after migrating an app to Spring Boot, I have observed that entity properties with @Id are no longer marshalled to JSON
- How to reinitialize a Spring Bean?
- Web service client given WSDL
- How to send a SOAP request using WebServiceTemplate?
- Parsing ksoap2 response
- Deploying Springboot to Azure App Service
- How to use parameters with HttpPost
- Apparent connection leak detected with Hikari CP
- How to upload a file in Selenium with no text box
- How to provide a custom deserializer with Jackson and Spring Boot
- java.lang.OutOfMemoryError: unable to create new native thread error using ChromeDriver and Chrome through Selenium in Spring boot
- Spring Boot access static resources missing scr/main/resources
- bootstrap.yml configuration not processed anymore with Spring Cloud 2020.0
- How do I prevent JAXBElement from being generated in a CXF Web Service client?
- Android WebView File Upload
- How to send post request to the below post method using postman rest client
- How to modify request body before reaching controller in spring boot
- Spring Boot – Reading Text File using ResourceLoader
- Enabling CORS globally in Spring Boot