Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. struts.multipart.parser - This property should be set to a class that extends MultiPartRequest. Currently, the framework ships with two implementations. org.struts.apache.struts2.dispatcher.multipart.PellMultiPartRequest and org.struts.apache.struts2.dispatcher.multipart.CosMultiPartRequest. If the property is not found the Pell parser is usedthe Jakarta FileUpload implementation.
  2. struts.multipart.saveDir - The directory where the uploaded files will be placed. If this property is not set it defaults to javax.servlet.context.tempdir.
  3. struts.multipart.maxSize - The maximum file size in bytes to allow for upload. This helps prevent system abuse by someone uploading lots of large files. The default value is 2 Megabytes and can be set as high as 2 Gigabytes (higher if you want to edit the Pell multipart source but you really need to rethink things if you need to upload files larger then 2 Gigabytes!) If you are uploading more than one file on a form the maxSize applies to the combined total, not the individual file sizes.

...