Re: Action File Upload Interceptor allowedTypes/allowedExtensions

2025-11-21 Thread Lukasz Lenart
PR is ready, I also identified a few other issues https://github.com/apache/struts/pull/1413 śr., 12 lis 2025 o 13:31 Lukasz Lenart napisał(a): > > I created a ticket [1] to address this problem, this should be easily > resolved by using WithLazyParams [2] > > [1] https://issues.apache.org/jira/b

Re: Action File Upload Interceptor allowedTypes/allowedExtensions

2025-11-12 Thread Lukasz Lenart
I created a ticket [1] to address this problem, this should be easily resolved by using WithLazyParams [2] [1] https://issues.apache.org/jira/browse/WW-5585 [2] https://struts.apache.org/core-developers/interceptors#lazy-parameters śr., 22 paź 2025 o 19:48 Lukasz Lenart napisał(a): > > I think r

Re: Action File Upload Interceptor allowedTypes/allowedExtensions

2025-10-22 Thread Lukasz Lenart
I think right now there is no better approach than performing validation in your action when using UploadedFilesAware interface and withUploadedFiles() method. You validate the extensions directly in the method or use the validate() method to perform this later. niedz., 19 paź 2025 o 15:16 Ute Kai

Action File Upload Interceptor allowedTypes/allowedExtensions

2025-10-19 Thread Ute Kaiser
Hi, while I know the way of setting application/pdf .pdf in struts.xml, I am looking for a way to do that in a more flexible way from my action. ${acceptedFileTypes} ${acceptedFileExtensions} does not work (due to TextParseUtil.commaDelimitedStringToSet in Actract