ServletFileUpload function ( HttpServletRequest arg0 ) { UploadListener loc0 = new UploadListener ( arg0 ) ; DiskFileItemFactory loc1 = new MonitoredDiskFileItemFactory ( loc0 ) ; ServletFileUpload loc2 = new ServletFileUpload ( loc1 ) ; loc1 . setRepository ( uploadTempDir ) ; loc2 . setSizeMax ( sizeMax ) ; return loc2 ; }
create a factory for disk-based file items with a listener we can check for progress . concode_field_sep File uploadTempDir concode_elem_sep long sizeMax concode_elem_sep Log logger concode_elem_sep ServletFileUpload fileUpload concode_elem_sep String defaultEncoding concode_field_sep void cleanupMultipart concode_elem_sep void setMaxUploadSize concode_elem_sep String determineEncoding concode_elem_sep void setServletContext concode_elem_sep MultipartHttpServletRequest resolveMultipart concode_elem_sep boolean isMultipart