0 Replies Latest reply on May 7, 2009 6:55 AM by alberton2009

    Content-Type for resources from CMS of JBoss Portal

      Hello,

      Does anyone know, how to set a content type for resources in CMS ?

      I have found file $JBOSS_HOME/server/default/deploy/jboss-web.deployer/conf/web.xml, where I can find:

      <!-- ===================== Default MIME Type Mappings =================== -->
       <!-- When serving static resources, Tomcat will automatically generate -->
       <!-- a "Content-Type" header based on the resource's filename extension, -->
       <!-- based on these mappings. Additional mappings can be added here (to -->
       <!-- apply to all web applications), or in your own application's web.xml -->
       <!-- deployment descriptor. -->
      
       <mime-mapping>
       <extension>abs</extension>
       <mime-type>audio/x-mpeg</mime-type>
       </mime-mapping>
      .
      .
      .


      Thoug adding any new mime-mapping there seems not to be working for me :| To be clear, I have added there following mapping for 3gp files:

      <mime-mapping>
       <extension>3gp</extension>
       <mime-type>video/3gpp</mime-type>
       </mime-mapping>


      but, cms portlet is still displaying 3gp files as: application/octet-stream and jboss as is serving them in the same way

      Does anyone know how to get rid of that issue ?

      Thanks in advace for reply!
      Albert