Solution for the request was rejected because its size (47071984) exceeds the configured maximum (10485760)
So here is the solution .
Step 1:
Just insert the below code in springbootApplication.java file
@Bean
MultipartConfigElement multipartConfigElement() {
MultipartConfigFactory factory = new MultipartConfigFactory();
factory.setMaxFileSize(DataSize.parse("50MB"));
factory.setMaxRequestSize(DataSize.parse("50MB"));
return factory.createMultipartConfig();
}
If you need to maximize the size then we can increase
Comments
Post a Comment