I have the following java code in Spring framework to convert a multipart file to a regular file:
public static File convertToFile(MultipartFile multipart) {
I solved the same issue by adding apache Commons FileUpload component. Hope it helps for you.
commons-fileupload
commons-fileupload
1.3.3
@Bean(name = "multipartResolver")
public CommonsMultipartResolver multipartResolver() {
CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
multipartResolver.setMaxUploadSize(100000);
return multipartResolver;
}