String charEncoding = request.getCharacterEncoding();
if (charEncoding == null || charEncoding.length() == 0) {
charEncoding = this.defaultCharEncoding;
}
MultipartParser parser =
new MultipartParser(
this.saveUploadedFilesToDisk,
this.uploadDirectory,
this.allowOverwrite,
this.silentlyRename,
this.maxUploadSize,
charEncoding);
Hashtable parts = parser.getParts(request.getContentLength(),
request.getContentType(),
request.getPortletInputStream());
req = new MultipartActionRequest(request, parts);
}