[PATCH] Added OpenDocument Format/ISO 26300 file formats to mime.types

Michiel Leenaars ml.software at leenaa.rs
Mon Sep 4 21:59:48 UTC 2017


# HG changeset patch
# User Michiel Leenaars <ml.software at leenaa.rs>
# Date 1504562357 -7200
#      Mon Sep 04 23:59:17 2017 +0200
# Node ID b31eb2901b627733dd3d9aaa07ce8071aa7c5dad
# Parent  c7d4017c8876af6d8570e400320537d7d39e9578
Added OpenDocument Format/ISO 26300 file formats to mime.types

ODF is the official document file format used by a number of
governments, NATO, as well as by hundreds of millions of users. It is
an international 'de jure' standard, including the file extensions and
associated mimetypes, which is the default file format of Apache Open
Office, LibreOffice, Calligra, NeoOffice (open source office
applications), as well as Collabio, Lotus Symphony and (at least in
Europe) of Microsoft Office - you can choose between the OOXML formats
and ODF upon install. These file format replace the legacy office file
formats such as .doc, .wpd and .xls.

Apache have had support for exact same mimetypes in their mimetype catalog for
quite a number of years, as do several other web server such as Lighttpd:

https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
http://redmine.lighttpd.net/projects/1/wiki/mimetype_assigndetails

The most common use case is a site putting up presentations or documents, or
migrating away from one of the servers that supports these mimetypes. Other
document file formats

diff -r c7d4017c8876 -r b31eb2901b62 conf/mime.types
--- a/conf/mime.types	Tue Aug 22 21:22:59 2017 +0300
+++ b/conf/mime.types	Mon Sep 04 23:59:17 2017 +0200
@@ -68,6 +68,21 @@
     application/vnd.openxmlformats-officedocument.spreadsheetml.sheet          xlsx;
     application/vnd.openxmlformats-officedocument.presentationml.presentation  pptx;
 
+    application/vnd.oasis.opendocument.text                                     odt;
+    application/vnd.oasis.opendocument.text-template                            ott;
+    application/vnd.oasis.opendocument.text-web                                 oth;
+    application/vnd.oasis.opendocument.text-master                              odm;
+    application/vnd.oasis.opendocument.graphics                                 odg;
+    application/vnd.oasis.opendocument.graphics-template                        otg;
+    application/vnd.oasis.opendocument.presentation                             odp;
+    application/vnd.oasis.opendocument.presentation-template                    otp;
+    application/vnd.oasis.opendocument.spreadsheet                              ods;
+    application/vnd.oasis.opendocument.spreadsheet-template                     ots;
+    application/vnd.oasis.opendocument.chart                                    odc;
+    application/vnd.oasis.opendocument.formula                                  odf;
+    application/vnd.oasis.opendocument.database                                 odb;
+    application/vnd.oasis.opendocument.image                                    odi;
+
     audio/midi                            mid midi kar;
     audio/mpeg                            mp3;
     audio/ogg                             ogg;


More information about the nginx-devel mailing list