}
if (config.getFileSizeThreshold() > 0) {
factory.setSizeThreshold(config.getFileSizeThreshold());
}
ServletFileUpload upload = new ServletFileUpload();
upload.setFileItemFactory(factory);
upload.setFileSizeMax(config.getMaxFileSize());
upload.setSizeMax(config.getMaxRequestSize());
parts = new HashMap<String, Part>();
try {
for (FileItem fileItem : upload.parseRequest(getRequest())) {
if (fileItem.getName() == null) {
coyoteRequest.getParameters().addParameterValues
(fileItem.getFieldName(), new String[] {fileItem.getString()});
}
parts.put(fileItem.getFieldName(), new StandardPart(fileItem, config));