// create the temp file
File tempFile = createTempFile(multipartReader);
// call the part handler
FileItem fileItem = new FileItem(fieldName, fileName, partContentType, tempFile.length(), tempFile, headers);
partHandler.handleFileItem(fieldName, fileItem);
}
continue;
}
} else {
String fileName = getFileName( headers.get(CONTENT_DISPOSITION) );
String partContentType = headers.get(CONTENT_TYPE);
if (fileName != null) {
// create the temp file
File tempFile = createTempFile(multipartReader);
// call the part handler
FileItem fileItem = new FileItem(currentFieldName, fileName, partContentType, tempFile.length(),
tempFile, headers);
partHandler.handleFileItem(currentFieldName, fileItem);
continue;
}
}