[ 
https://issues.apache.org/jira/browse/FILEUPLOAD-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17357790#comment-17357790
 ] 

Sergiu Ojog commented on FILEUPLOAD-269:
----------------------------------------

 

You are right the issue was in spring classes. 

And it fixed in recent versions: 
[https://github.com/spring-projects/spring-framework/commit/a1bf941ec4282e9924c2e98bf5e9816a509c4d26]

Thank you,

Sergiu

> CommonsFileUploadSupport ignores fileSizeMax 
> ---------------------------------------------
>
>                 Key: FILEUPLOAD-269
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-269
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.3.1
>            Reporter: Sergiu Ojog
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Code:
>         long fileSizeMax = 1024*1024;
>         CommonsMultipartResolver commonsMultipartResolver = new 
> CommonsMultipartResolver(servletContext);
>       commonsMultipartResolver.getFileUpload().setFileSizeMax(fileSizeMax);
>         commonsMultipartResolver.resolveMultipart(request);
> Observed:
>         The fileSizeMax is not used, 
> CommonsFileUploadSupport.prepareFileUpload creates a new FileUpload and does 
> not propagate the existing fileSizeMax.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to