I want to add an upload function to my spring boot application; this is my upload Rest Controller
package org.sid.web;
import java.io.BufferedOutputStream
I also had similar issue and was getting the error request part file not present. But I later realized that I have this code in my application which was causing problem:
@Bean(name = "multipartResolver")
public CommonsMultipartResolver multipartResolver() {
CommonsMultipartResolver multipartResolver = new
CommonsMultipartResolver();
multipartResolver.setMaxUploadSize(1000000000);
return multipartResolver;
}
I removed this and it started working for both RequestPart and RequestParam. See the related issue below:
https://forum.predix.io/questions/22163/multipartfile-parameter-is-not-present-error.html