Uploaded image for project: 'Clowder'
  1. Clowder
  2. CATS-100

To determine input type for Polyglot - use file's name instead of content type

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • Old Issues
    • None
    • None
    • None

      Issue:
      In the PolyglotPlugin-related code, when sending a file to Polyglot to get all the output formats for this input format, text file returns an error.

      Reason:
      We are getting the content type of the file, and using the very last part of it (.jpg or .doc) as input type for Polyglot. But the text file's content type is text/plain, so 'plain' is being sent to Polyglot as an input, and it's not recognized. Hence an error from Polyglot.

      To fix this issue, need to use file name instead of content type.

      Related to: CATS-68

              inna Inna Zharnitsky
              inna Inna Zharnitsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: