Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
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:
Could fileCountMax has a different name to avoid the confusion?
Workaround
- Extend ServletFileUpload and expose a different setter for the fileCountMax property
- Catch and re-throw FileCountLimitExceededException with a less confusing description.