[
https://issues.apache.org/jira/browse/FILEUPLOAD-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roman Kovarik updated FILEUPLOAD-351:
-------------------------------------
Description:
Setting _fileCountMax_ affects also requests with only form fields resulting in:
_org.apache.commons.fileupload.FileCountLimitExceededException: attachment_
Not sure if the ATTACHMENT constant is used here intentionally or by mistake:
[https://github.com/apache/commons-fileupload/pull/185/commits/b00fd89614db15357172a0fbed46de420ec9acb5#diff-90d30ad81e55682e532edd637107f983587cd6db8ebf8c5625ea6d9ff616cbfeR320]
Could _fileCountMax_ has a different name to avoid the confusion?
h3. Workaround
* Extend _ServletFileUpload_ and expose a different setter for the
_fileCountMax_ property
* Catch and re-throw _FileCountLimitExceededException_ with a less confusing
description.
h3.
was:
Setting _fileCountMax_ affects also requests with only form fields resulting in:
_org.apache.commons.fileupload.FileCountLimitExceededException: attachment_
Not sure if the ATTACHMENT constant is used here intentionally or by mistake:
[https://github.com/apache/commons-fileupload/pull/185/commits/b00fd89614db15357172a0fbed46de420ec9acb5#diff-90d30ad81e55682e532edd637107f983587cd6db8ebf8c5625ea6d9ff616cbfeR320]
Could _fileCountMax_ has a different name to avoid the confusion?
h3. Workaround
* Extend
_ServletFileUpload_ and expose a different setter for the_fileCountMax property_
* Catch and re-throw _FileCountLimitExceededException_ with a less confusing
description.
h3.
> FileCountMax creates an impression it's only about file attachments
> -------------------------------------------------------------------
>
> Key: FILEUPLOAD-351
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-351
> Project: Commons FileUpload
> Issue Type: Improvement
> Reporter: Roman Kovarik
> Priority: Minor
>
> Setting _fileCountMax_ affects also requests with only form fields resulting
> in:
> _org.apache.commons.fileupload.FileCountLimitExceededException: attachment_
> Not sure if the ATTACHMENT constant is used here intentionally or by mistake:
> [https://github.com/apache/commons-fileupload/pull/185/commits/b00fd89614db15357172a0fbed46de420ec9acb5#diff-90d30ad81e55682e532edd637107f983587cd6db8ebf8c5625ea6d9ff616cbfeR320]
>
> Could _fileCountMax_ has a different name to avoid the confusion?
> h3. Workaround
> * Extend _ServletFileUpload_ and expose a different setter for the
> _fileCountMax_ property
> * Catch and re-throw _FileCountLimitExceededException_ with a less confusing
> description.
> h3.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)