@Override
public List<FileItem> parseRequest(RequestContext ctx) throws FileUploadException {
try {
FileItemIterator iter = getItemIterator(ctx);
List<FileItem> items = new ArrayList<FileItem>();
FileItemFactory fac = getFileItemFactory();
if (fac == null) {
throw new NullPointerException(
"No FileItemFactory has been set.");
}
while (iter.hasNext()) {
FileItemStream item = iter.next();
HttpFileItem fileItem = new HttpFileItem(fac.createItem(item.getFieldName(),
item.getContentType(), item.isFormField(),
item.getName())
);
try {
MessageDigestInputStream in = new MessageDigestInputStream(