try { // 多附件上传 MultipartRequestHandler mrh = conForm.getMultipartRequestHandler(); Map formFiles = mrh.getFileElements(); String fileName=""; if (formFiles!=null){ AnnexsUpload au = new AnnexsUpload(req,res);//获得上传附件通用对象 Iterator it = formFiles.values().iterator();