lukaszlenart commented on code in PR #893:
URL: https://github.com/apache/struts/pull/893#discussion_r1517360459
##########
core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java:
##########
@@ -337,7 +337,7 @@ public UploadedFile<T>[] getFile(String fieldName) {
*/
public String[] getFileNames(String fieldName) {
return uploadedFiles.getOrDefault(fieldName,
Collections.emptyList()).stream()
- .map(file -> getCanonicalName(file.getName()))
+ .map(file -> getCanonicalName(file.getOriginalName()))
Review Comment:
But the same is on 6.xx, see
[here](https://github.com/apache/struts/blob/master/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java#L268)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]