[opencms-dev] Setting MIME Types in OpenCMS 7.0.3
Detlef Beyer
d.beyer at crash.de
Fri Feb 22 15:35:33 CET 2008
Sorry - I found the MimeTypes in opencms-vfs.xml
So my question now is:
<type class="org.opencms.file.types.CmsResourceTypeBinary"
name="binary" id="2">
<mappings>
....
<mapping suffix=".jar"/>
</mappings>
</type>
JAR files are still served as text/html...
Is it OK to add this to the config:
<mimetypes>
<mimetype extension=".jar" type="application/java-archive"/>
<mimetype extension=".jad" type="text/vnd.sun.j2me.app-
descriptor"/>
....
????
Best regards,
Detlef
Am 22.02.2008 um 15:28 schrieb Detlef Beyer:
> Hello :)
>
> I need to set two MIME-Types in OpenCMS to deliver MIDlets (mobile
> phone app) to my clients:
>
> MIME type - application/java-archive
> extension - .jar
>
> MIME type - text/vnd.sun.j2me.app-descriptor
> extension - .jad
>
> I checked the MIME-Type settings in Apache and Tomcat and everything
> is fine there. So I think I will have to tell OpenCMS about the new
> MIME Types?!
>
> I found the hint that I will have to extract org/opencms/loader/
> mimetypes.properties from the opencms.jar. But the file is not there
> in 7.0.3.
>
> Can you give me a hint where to set the MIME-Types in OpenCMS 7.0.3?!
>
>
> Thanks for your help,
>
> Detlef
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list