[jira] Created: (TIKA-538) Add method get file extension from MimeTypes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (TIKA-538) Add method get file extension from MimeTypes

Hudson (Jira)
Add method get file extension from MimeTypes
--------------------------------------------

                 Key: TIKA-538
                 URL: https://issues.apache.org/jira/browse/TIKA-538
             Project: Tika
          Issue Type: Improvement
          Components: mime
    Affects Versions: 0.7
            Reporter: Peter van Raamsdonk
            Priority: Minor
             Fix For: 0.8


Mapping between the mimetype and file extension is being done. Mimetypes (http://svn.apache.org/repos/asf/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml)

It would be an improvement to get the file extension from the detected mime type. Example detected "audio/mpeg", file extension "mp3"

In short, make url pattern/ file extension public

(when working with blobs)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (TIKA-538) Add method get file extension from MimeTypes

Hudson (Jira)

     [ https://issues.apache.org/jira/browse/TIKA-538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated TIKA-538:
-----------------------------------

    Fix Version/s:     (was: 0.8)
                   0.9

- pushing out to 0.9 -- there's no patch for this yet and it's 0.8 release time

> Add method get file extension from MimeTypes
> --------------------------------------------
>
>                 Key: TIKA-538
>                 URL: https://issues.apache.org/jira/browse/TIKA-538
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 0.7
>            Reporter: Peter van Raamsdonk
>            Priority: Minor
>             Fix For: 0.9
>
>
> Mapping between the mimetype and file extension is being done. Mimetypes (http://svn.apache.org/repos/asf/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml)
> It would be an improvement to get the file extension from the detected mime type. Example detected "audio/mpeg", file extension "mp3"
> In short, make url pattern/ file extension public
> (when working with blobs)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (TIKA-538) Add method get file extension from MimeTypes

Hudson (Jira)
In reply to this post by Hudson (Jira)

     [ https://issues.apache.org/jira/browse/TIKA-538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann resolved TIKA-538.
------------------------------------

    Resolution: Not A Problem
      Assignee: Chris A. Mattmann

It kind of seems like this functionality is already possible. See the MimeType.java class and its method:

{code:java}
    public String getExtension() {
        return extension;
    }
{code}

Seems like you can get the extension for a particular MimeType that is detected, correct? If not, please file a new issue and be a little more specific as the functionality you are talking about and what's missing. Thanks!

> Add method get file extension from MimeTypes
> --------------------------------------------
>
>                 Key: TIKA-538
>                 URL: https://issues.apache.org/jira/browse/TIKA-538
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 0.7
>            Reporter: Peter van Raamsdonk
>            Assignee: Chris A. Mattmann
>            Priority: Minor
>             Fix For: 0.9
>
>
> Mapping between the mimetype and file extension is being done. Mimetypes (http://svn.apache.org/repos/asf/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml)
> It would be an improvement to get the file extension from the detected mime type. Example detected "audio/mpeg", file extension "mp3"
> In short, make url pattern/ file extension public
> (when working with blobs)

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira