Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WW-5371] Documents new Action File Upload Interceptor #223

Merged
merged 3 commits into from Jan 12, 2024

Conversation

lukaszlenart
Copy link
Member

Refs WW-5371

@asf-ci
Copy link

asf-ci commented Jan 10, 2024

Staged site is ready at https://struts.staged.apache.org/


@Override
public void withUploadedFiles(List<UploadedFile> uploadedFiles) {
if (!uploadedFiles.isEmpty() > 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think you can drop the > 0


@Override
public void withUploadedFiles(List<UploadedFile> uploadedFiles) {
if (!uploadedFiles.isEmpty() > 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

the required libraries are added to your project you will be able to take advantage of the Struts 2 file upload
capability. Configure an Action mapping for your Action class as you typically would.
The `org.apache.struts2.interceptor.FileUploadInterceptor` and `org.apache.struts2.interceptor.ActionFileUploadInterceptor`
classes is included as part of the `defaultStack`. As long as the required libraries are added to your project you will be able
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

classes **are** included

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rephrased the sentence a bit

@asf-ci
Copy link

asf-ci commented Jan 11, 2024

Staged site is ready at https://struts.staged.apache.org/

Copy link
Member

@kusalk kusalk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@lukaszlenart lukaszlenart merged commit 435c0ab into master Jan 12, 2024
1 check passed
@lukaszlenart lukaszlenart deleted the feature/WW-5371-modern-upload branch January 12, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants