commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergiu Ojog (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FILEUPLOAD-269) CommonsFileUploadSupport ignores fileSizeMax
Date Fri, 21 Aug 2015 15:25:46 GMT
Sergiu Ojog created FILEUPLOAD-269:
--------------------------------------

             Summary: 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


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
(v6.3.4#6332)

Mime
View raw message