long maxRequestSize = getMaxRequestSize(servletContext);
if (maxRequestSize == 0 || contentLength <= maxRequestSize) {
boolean createTempFiles = isCreateTempFiles(servletContext);
String tempFilesDirectory = getTempFilesDirectory(servletContext);
MultipartRequestParser requestParser = new MultipartRequestParser(request, createTempFiles, tempFilesDirectory,
progressControl);
multipartRequest = new MultipartRequest25(request, uploadId, progressControl, requestParser);
} else {
multipartRequest = new MultipartRequestSizeExceeded(request, uploadId, progressControl);