code: public UploadMediaResponse upload(MediaType type, File file){
          if(type == MediaType.NEWS){
              LOG.debug("企业号媒体素材不包含新闻列表");
              return null;
          }
          UploadMediaResponse response;
          String url = BASE_API_URL + "cgi-bin/media/upload?access_token=#&type=" + type.toString();
          BaseResponse r = executePost(url, null, file);
          String resultJson = isSuccess(r.getErrcode()) ? r.getErrmsg() : r.toJsonString();
          response = JSONUtil.toBean(resultJson, UploadMediaResponse.class);
          return response;
      }
docs: 上传媒体文件
  @param file 媒体文件
  @param type 媒体文件类型
  @return 上传结果