I\'m developing application based on Spring Boot and AngularJS using JHipster. My question is how to set max size of uploading files?
If I\'m trying
I found the the solution at Expert Exchange, which worked fine for me.
@Bean
public MultipartConfigElement multipartConfigElement() {
MultipartConfigFactory factory = new MultipartConfigFactory();
factory.setMaxFileSize("124MB");
factory.setMaxRequestSize("124MB");
return factory.createMultipartConfig();
}
Ref: https://www.experts-exchange.com/questions/28990849/How-to-increase-Spring-boot-Tomcat-max-file-upload-size.html