code: public static String analysisFileName(String url) {
          if (StringUtils.isNullOrEmpty(url))
              return url;
  
          String result = url;
          int idx = url.lastIndexOf("/");
          int idx2 = url.lastIndexOf("?");
          if (idx != -1) {
              if (idx2 != -1) {
                  result = url.substring(idx + 1, idx2);
              } else {
                  result = url.substring(idx + 1);
              }
          } else {
              if (idx2 != -1) {
                  result = url.substring(0, idx2);
              }
          }
          return result;
      }
docs: public final static String ACCEPT_IMAGE = "image/gif, image/jpeg, image/pjpeg, image/pjpeg";