What is MIME type "application/x-vnd.oasis.opendocument.text-template"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

The MIME type application/x-vnd.oasis.opendocument.text-template is used for storing OpenDocument text templates.
It holds layout designs, default text, and style settings. These files act as blueprints for creating new documents quickly and uniformly.
The file uses the extension OTT and follows standards defined by the OASIS group.
Learn more about these standards at OASIS Open Standards.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: application/x-vnd.oasis.opendocument.text-template    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="application/x-vnd.oasis.opendocument.text-template">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'application/x-vnd.oasis.opendocument.text-template');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What applications open files with the MIME type application/x-vnd.oasis.opendocument.text-template?

This MIME type is primarily associated with LibreOffice Writer and OpenOffice Writer. It represents a template file used to generate new text documents with pre-defined styles and formatting. Modern versions of Microsoft Word can also open these files, though formatting may vary slightly.

How do I configure Apache to serve .ott files with this MIME type?

To ensure your Apache server sends the correct headers, add the following line to your .htaccess file or main configuration: AddType application/x-vnd.oasis.opendocument.text-template .ott. If you are updating a modern server, consider also adding the standard IANA registry version without the x- prefix.

What is the difference between this MIME type and application/vnd.oasis.opendocument.text?

The type application/x-vnd.oasis.opendocument.text-template identifies a template (.ott), which acts as a blueprint for creating new, untitled documents. In contrast, application/vnd.oasis.opendocument.text identifies a saved document (.odt) containing finished content.

Why does this MIME type include 'x-vnd' instead of just 'vnd'?

The x- prefix historically denoted a non-standard or experimental subtype before the OpenDocument format was fully standardized by IANA. While the official standard is now application/vnd.oasis.opendocument.text-template, older systems and legacy configurations may still strictly require the x-vnd version.

How do I add support for this MIME type in Nginx?

You can register the MIME type by editing your mime.types file, typically located in /etc/nginx/. Add the line application/x-vnd.oasis.opendocument.text-template ott; inside the types block, then reload the Nginx service.

Are files with this MIME type safe to open?

Generally, yes, as OpenDocument files are essentially ZIP archives containing XML data. However, like other office formats, they can contain macros or scripts; you should only enable macros if you trust the source of the file.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.