You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/04/22 12:00:00 UTC
[jira] [Updated] (FILEUPLOAD-350) FileUploadByteCountLimitException ctor switches fileName and fieldName parameters
[ https://issues.apache.org/jira/browse/FILEUPLOAD-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory updated FILEUPLOAD-350:
---------------------------------------
Summary: FileUploadByteCountLimitException ctor switches fileName and fieldName parameters (was: FileUploadByteCountLimitException ignores file name and uses instead field name)
> FileUploadByteCountLimitException ctor switches fileName and fieldName parameters
> ---------------------------------------------------------------------------------
>
> Key: FILEUPLOAD-350
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-350
> Project: Commons FileUpload
> Issue Type: Improvement
> Affects Versions: 2.0
> Reporter: Ernesto Reinaldo Barreiro
> Priority: Major
>
> /**
> * Constructs an instance with the specified detail message, and actual and permitted sizes.
> *
> * @param message The detail message (which is saved for later retrieval by the \{@link #getMessage()} method)
> * @param actual The actual request size.
> * @param permitted The maximum permitted request size.
> * @param fileName File name of the item, which caused the exception.
> * @param fieldName Field name of the item, which caused the exception.
> */
> public FileUploadByteCountLimitException(final String message, final long actual, final long permitted, final String fileName, final String fieldName) {
> super(message, permitted, actual);
> this.fileName = fieldName;
> this.fieldName = fieldName;
> }
--
This message was sent by Atlassian Jira
(v8.20.10#820010)