Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

Files in Zope don't open properly

Purpose

Links to file types such as PDF, MSWord, or a movie file may not open in the browser as the user expects. Browsers are often configured to open special files with a plug-in in the browser window, but the mime-type or content-type of the file must be correctly set so the browser can open the correct plug-in. The mime-type or content-type of a file is not always set correctly during the upload process to Zope, and therefore it is necessary to set the mime-type or content-type using the directions below.

To set the content-type for a file, click on the file in the ZMI. Change the Content type property to the correct type (a short list of commonly used types is below), and click the Save Changes button. Now, when you click the View tab, or a link to the file from another web page, the browser should open the file as expected. (Note that the browser needs to be properly configured, this document does not describe that topic.)

File Type Content type / Mime type File Extension(s)
PDF application/pdf pdf
PostScript application/postscript ps ai eps
MS Word application/msword doc dot
MS PowerPoint application/vnd.ms-powerpoint ppt pps pot
MS Excel application/vnd.ms-excel xls xlb
JPEG image/jpeg jpeg jpg jpe
GIF image/gif gif
PNG image/png png
Plain Text text/plain asc txt text diff
XML text/xml xml xsl
MPEG Movie video/mpeg mpeg mpg mpe

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Mar 22, 2007 4:32 pm GMT-4 by admin
JumpURL: