code: public String getFileType() {
          if (fileTypeOrName != null && fileTypeOrName.contains(".")) {
              return FileUtils.getExtension(fileTypeOrName);
          } else {
              return fileTypeOrName;
          }
      }
docs: Gets the type ("png", "txt", ...) of the file.
  
  @return The type of the file.