This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/struts.git
from f684effd9 Merge pull request #807 from apache/feature/http-params-case add 0bc0217b9 WW-5371 Implements action based file upload add dc4103bcb WW-5371 Uses the new upload mechanism in Showcase app add 3ce3f8264 WW-5371 Simplifies file upload logic and extracts constants add 3ef9ade89 WW-5371 Document how to use the new file upload logic add 64c13cc74 WW-5370 Simplifies error handling logic new f4501846c Merge pull request #808 from apache/feature/WW-5371-modern-upload The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../showcase/fileupload/FileUploadAction.java | 122 ++++--- .../webapp/WEB-INF/fileupload/upload-success.jsp | 9 +- .../{SessionAware.java => UploadedFilesAware.java} | 22 +- .../multipart/JakartaMultiPartRequest.java | 6 +- .../multipart/JakartaStreamMultiPartRequest.java | 42 +-- .../dispatcher/multipart/StrutsUploadedFile.java | 64 +++- .../struts2/dispatcher/multipart/UploadedFile.java | 8 +- .../interceptor/AbstractFileUploadInterceptor.java | 263 +++++++++++++++ .../interceptor/ActionFileUploadInterceptor.java | 191 +++++++++++ .../struts2/interceptor/FileUploadInterceptor.java | 265 ++------------- .../apache/struts2/struts-messages_en.properties | 27 +- core/src/main/resources/struts-default.xml | 9 + .../conversion/UploadedFileConverterTest.java | 19 +- ...t.java => ActionFileUploadInterceptorTest.java} | 369 ++++++++++----------- .../interceptor/FileUploadInterceptorTest.java | 182 +++++----- .../dispatcher/multipart/PellMultiPartRequest.java | 13 +- 16 files changed, 976 insertions(+), 635 deletions(-) copy core/src/main/java/org/apache/struts2/action/{SessionAware.java => UploadedFilesAware.java} (57%) create mode 100644 core/src/main/java/org/apache/struts2/interceptor/AbstractFileUploadInterceptor.java create mode 100644 core/src/main/java/org/apache/struts2/interceptor/ActionFileUploadInterceptor.java copy core/src/test/java/org/apache/struts2/interceptor/{FileUploadInterceptorTest.java => ActionFileUploadInterceptorTest.java} (56%)