0

I have tried adding the required jar plugin for pell multipart in the lib directory. Also I have made the following entry to my struts.xml

<constant name="struts.multipart.parser" value="pell" />

But it does not seem to work. From the logs it is clear that the default jakarta parser is being referenced every time for file uploads.

Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243

1 Answers1

0

The pell parser is a plugin, that you need to download and include in the package. From the docs:

The pell parser uses Jason Pell's multipart parser instead of the Commons-FileUpload library. The pell parser is a Struts 2 plugin, for more details see: https://cwiki.apache.org/confluence/display/S2PLUGINS/Pell+Multipart+Plugin.

And

Installation

This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory. The Pell Multipart library will need to be downloaded and included in your application as well. Due to its LGPL license, the library cannot be included in the Struts distribution.


Note: from 2.3.18+ you can also use jakarta-stream instead of jakarta or pell, to handle huge files and reporting FileTooBig errors correctly.

Community
  • 1
  • 1
Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
  • Can I instead use the JakartaSteamMultiPartRequest.java specified here: [WW-3025](https://issues.apache.org/jira/browse/WW-3025). This may serve as a workaround for my current struts version 2.1.8.Will this be supported for my version of struts? – p_saurabh92 Dec 16 '15 at 04:53
  • 2.3.18, not 2.1.8, sorry – Andrea Ligios Dec 16 '15 at 07:22