code: public void addUploadFile(HttpServletRequest request,
                              UploadFile uploadFile) {
      if (uploadFile == null)
        return;
      try{
        HttpSession session = request.getSession(true);
        Collection uploadList = (Collection)session.getAttribute(PIC_NAME_PACKAGE);
        if (uploadList == null) {
          uploadList = new ArrayList();
          session.setAttribute(PIC_NAME_PACKAGE, uploadList);
        }
        uploadList.add(uploadFile);
        uploadFile.setTempId(Integer.toString(uploadList.size() - 1)); //临时给予id
      }catch(Exception ex){
        Debug.logError("[JdonFramework]addUploadFile error:" + ex, module);
      }
  
    }
docs: 逐个UploadFile新增保存到Http Session
  @param request
  @param uploadFile