[opencms-dev] Wrong content type of binary files in download gallery

Alexander Kandzior alex at opencms.org
Tue Jun 28 16:33:17 CEST 2005


You need to add this to the "mimetypes.properties" located in the
org.opencms.loader package.
 
Please let me know which mime types we are missing so we can include this in
the release version due later this week.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/> 



 


  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Ronald Lips
Sent: Tuesday, June 28, 2005 4:06 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Wrong content type of binary files in download
gallery



Hi, 

I have created a download gallery in OpenCms beta 2 Corrin. I have added a
3GP video file to this download gallery. In a web page I have created a link
to this 3GP file that end users can select to download the file. When
downloading, the file is not opened by the default player for 3GP files on
my system (Quicktime), but by my browser. This means I get to see the binary
content of the file instead of a popup window asking me to open the file in
my player or to store it on disk.

In my opinion, the cause of this is that the content type set by OpenCms for
a 3GP file is text/html. This causes the browser to open the file. I have
taken the following actions to set the content type correctly to video/3gpp:

*	Added a MIME type for the 3gp extension in the web.xml of my Tomcat
installation and restarted Tomcat 

*	Added a MIME type for the 3gp extension in the web.xml of OpenCms
and restarted OpenCms 

*	Added 3gp as binary content in the opencms-vfs.xml 


None of these actions worked. Does anyone know the solution to this? 

Thanks 
Ronald 

AtoBe Mobile Solutions 
Ronald Lips 

tel:    +31 (0)23 750 21 19 
fax:    +31 (0)23 750 21 11 
mob:    +31 (0)651 18 35 70 
mail:   ronald.lips at atobemobile.com 
web:     <file://www.atobemobile.com> www.atobemobile.com 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050628/d36b3ccb/attachment.htm>


More information about the opencms-dev mailing list