[
https://issues.apache.org/jira/browse/WICKET-7051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17715225#comment-17715225
]
ASF GitHub Bot commented on WICKET-7051:
----------------------------------------
reiern70 commented on PR #586:
URL: https://github.com/apache/wicket/pull/586#issuecomment-1518510043
Hum... Not totally true that problem is in our court as filename is ignored
here.
```
/**
* 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;
}
```
> fileupload2 does not seem to have exceptions to distinguish bettween file too
> big and total size too big
> --------------------------------------------------------------------------------------------------------
>
> Key: WICKET-7051
> URL: https://issues.apache.org/jira/browse/WICKET-7051
> Project: Wicket
> Issue Type: Improvement
> Reporter: Ernesto Reinaldo Barreiro
> Priority: Major
> Attachments: image-2023-04-21-07-02-43-203.png,
> image-2023-04-21-07-09-21-230.png
>
>
> File upload does not seem to distinguish now between a single file too big
> and all files too big.
>
> !image-2023-04-21-07-02-43-203.png!
> Even more
>
> !image-2023-04-21-07-09-21-230.png!
> File name seems to be ignored?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)