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

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

application/vnd.oasis.opendocument.formula-template is the MIME type for a template file designed to create formula documents using the OpenDocument standard.
It holds a preformatted structure and styling for mathematical or scientific formulas. When opened in a compatible editor, such as OpenOffice Math or LibreOffice Math, it provides a ready-made blueprint so you can quickly start a new formula document without setting up formats again.
Files using this MIME type usually have the ODFT extension.
For additional details on the OpenDocument format and its file types, see OASIS OpenDocument Format.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/vnd.oasis.opendocument.formula-template    
  

HTML

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


    <a href="file.dat" type="application/vnd.oasis.opendocument.formula-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/vnd.oasis.opendocument.formula-template');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What is the primary file extension for application/vnd.oasis.opendocument.formula-template?

The standard file extension for this MIME type is .odft. While the OpenDocument standard includes many extensions like .odt or .ods, this specific type is reserved for formula templates used to generate mathematical documents.

How do I configure an Apache server to serve ODFT files?

You should add the MIME type directive to your .htaccess file or main configuration. Use the line: AddType application/vnd.oasis.opendocument.formula-template .odft. This ensures the server sends the correct headers to the client.

Can web browsers display OpenDocument Formula Templates natively?

No, browsers like Chrome, Firefox, or Edge cannot render ODFT files directly. When a user clicks a link with this MIME type, the browser will typically download the file so it can be opened in a desktop application like LibreOffice Math.

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

The MIME type ending in formula-template corresponds to .odft files, which act as blueprints for creating new documents. The type application/vnd.oasis.opendocument.formula is for .odf files, which are the actual saved formula documents containing content.

How do I set up Nginx to handle this MIME type?

Update your mime.types file or the types block in your nginx.conf. Add the entry: application/vnd.oasis.opendocument.formula-template odft;. Reload Nginx to apply the changes.

Why does my ODFT file download as a ZIP file?

OpenDocument files are technically XML-based content compressed into a ZIP container. If the MIME type is missing or incorrect on the server, the browser may interpret the file structure as application/zip. Correcting the server headers usually resolves this.

Is this MIME type safe to open?

Generally, yes, as it is an XML-based format used for mathematical notation. However, like all office document formats, you should only open files from trusted sources to avoid potential risks associated with malformed files or embedded macros in the parent suite.

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.