Name |
Pell Multipart Plugin |
---|---|
Author |
N/A |
Homepage |
N/A |
Version |
N/A |
Compatibility |
Bundled with Struts |
State |
Stable |
License |
Open Source (ASL2) |
Download |
N/A |
Overview
The Pell Multipart plugin instructs Struts to use Jason Pell's multipart parser to process file uploads .
For more information how the file uploading works in Struts 2, see the Handling File Uploads page.
Features
- Uses Jason Pell's multipart parser
Usage
Other than including the plugin and the Pell multipart jar in your application, there is nothing more to do.
Example
If you have installed multiple plugins that provide multipart parsers, you can configure the pell parser in your struts.properties
:
struts.multipart.parser=pell
Settings
The following settings can be customized. See the developer guide.
Setting |
Description |
Default |
Possible Values |
---|---|---|---|
|
Sets which parser to use |
|
|
|
The directory where the uploaded files will be placed |
Value from |
Any path |
|
The maximum file size in bytes to allow for upload |
2 Gigabytes |
Any number in kilobytes |
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.