Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1074

Replace ExtensionMimeMap with new Tika().detect(filename)

    XMLWordPrintableJSON

Details

    Description

      It would be nice if we could support many mime type since ManifoldCF has already been using Tika.

       new Tika().detect(fileName);
      

      returns String MimeType. Then we could set this into RepositoryDocument#setMimeType(mimeType) on each connector;

      Tika reference:
      javadoc
      test code

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            shinichiro abe Shinichiro Abe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: