Set the file size limit to 30 MB:
@MultipartConfig(location="/tmp", fileSizeThreshold=1024*1024, maxFileSize=1024*1024*30, maxRequestSize=1024*1024*60) When trying to download a larger file, we get not IllegalStateException() , as written in the documentation, and this:
Unable to access the site
Веб-страница по адресу http://localhost:8080/page, возможно, временно недоступна или постоянно перемещена по новому адресу. ERR_CONNECTION_ABORTED If the file size does not exceed the limit, everything works correctly.
If you do not put a restriction, but simply use the @MultipartConfing annotation, everything is fine too.
As soon as we set the limit and load the file larger, this is the problem.
Any tips?