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

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229361#4229361

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229361
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to