[ 
https://issues.apache.org/jira/browse/TIKA-4267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851598#comment-17851598
 ] 

Tilman Hausherr edited comment on TIKA-4267 at 6/3/24 12:06 PM:
----------------------------------------------------------------

The current version is 2.9.2, please retry with that one.

Get the list of parsers with this code:
{code:java}
AutoDetectParser parser = new AutoDetectParser();
ParseContext context = new ParseContext();
Map<MediaType, Parser> parsers = parser.getParsers(context);
Tika tika = new Tika();
System.out.println(tika.toString());
System.out.println("List of parsers: ");
int idx = 0;
for (Map.Entry<MediaType, Parser> p : parsers.entrySet())
{
        MediaType t = p.getKey();
        System.out.println((idx + 1) + ".- " + t.getType() + "/" + 
t.getSubtype());
        ++idx;
}
{code}


was (Author: tilman):
The current version is 2.9.2, please retry with that one.

> Not getting correct mimet type for few file extensions. example :csv
> --------------------------------------------------------------------
>
>                 Key: TIKA-4267
>                 URL: https://issues.apache.org/jira/browse/TIKA-4267
>             Project: Tika
>          Issue Type: Bug
>            Reporter: niv
>            Priority: Major
>
> Mime type for CSV files incorrectly detected as text/plain always.
> UsingĀ  method 
> {color:#000000}{color:#6a3e3e}detector{color}{color:#000000}.{color}{color:#000000}detect{color}{color:#000000}({color}{color:#6a3e3e}stream{color}{color:#000000},
>  {color}{color:#6a3e3e}metadata{color}{color:#000000});{color}{color}
> jar file used - Tikka 1.28.4
> How can i get the correct mimetype in java application?
> Please redirect me to the link list of extension currently support by latest 
> jar with the mimetype if any.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to