String uid = getParameterValueFromQueryString(httpRequest.getQueryString(), UID_KEY);
if (uid != null) {
long contentLength = Long.parseLong(httpRequest.getHeader("Content-Length"));
ProgressControl progressControl = new ProgressControl(uid, contentLength);
HttpServletRequest wrappedRequest = wrapMultipartRequestServlet25((ServletContext) context, httpRequest,
uid, contentLength, progressControl);
FacesContext facesContext = wrappedFactory.getFacesContext(context, wrappedRequest, response, lifecycle);
progressControl.setContextMap(facesContext.getExternalContext().getSessionMap());
return new FileUploadFacesContext(facesContext);
}
}
}