-
Bug
-
Resolution: Fixed
-
Normal
-
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