You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Arturo Bernal (Jira)" <ji...@apache.org> on 2021/06/05 05:11:00 UTC

[jira] [Commented] (FILEUPLOAD-269) CommonsFileUploadSupport ignores fileSizeMax

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

Arturo Bernal commented on FILEUPLOAD-269:
------------------------------------------

 Hi [~sergiuo]

Don't understand the exactly problem here. AFAIK Those class that you comment are from Spring. On the other hand, the maximum size is used in FileItemIterator, FileItemStreamImpl, among others . 

Pls cl

TY

 

> 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)