Re: error while uploading file using struts 7
Lukasz Lenart <[email protected]> Tue, 20 May 2025 06:34:50 +0200
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <CAMopvkNjH4z+1kz_388xUL7wdH6Ca0UHUkWPh_evwq_J34RzPg@mail.gmail.com> |
wt., 20 maj 2025 o 06:28 Priyanka Vaddadi <[email protected]> napisał(a): > WE are receiving document name and document received date and documentTYpeId. But not actual content of document. > I mean the below variable is not getting populated with data. But the same variable gets populated with data with struts 2.3. Please let me know what is the problem here with struts 7 > private File documentImage; The problem is that your action must implement UploadedFilesAware interface to support upload https://github.com/apache/struts/blob/main/core/src/main/java/org/apache/struts2/interceptor/ActionFileUploadInterceptor.java#L105-L124 Cheers Łukasz