jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Mime Types
Date Fri, 19 Dec 2008 13:27:56 GMT
On Fri, Dec 19, 2008 at 1:08 PM, Kurz Wolfgang <wolfgang.kurz@gwvs.de> wrote:
> To store Documents I need to set the MimeType in the Resource Node to do
> a search later.

Jackrabbit's simplewebdavservlet simply takes the extension to
identify file types. Here is the default configuration:


A more advanced way is to use libraries that look into the file for
magic bytes and other identifiers for the filetype, eg. JMimeMagic.
Here is a nice overview of options I found on Google:


> But my problem is where do I get the mime types from and which do I use
> if I have more than one option?

You can use any one of them ;-) Since all of these mimetypes are
valid, you could use the one that works with most of your other
applications and operating systems in practice - there is no general
authority on which mimetype is the correct one. One could blame
Microsoft for that, but it does not really help.


Alexander Klimetschek

View raw message