What is MIME type "application/vnd.oasis.opendocument.chart-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/vnd.oasis.opendocument.chart-template designates a chart template in the OpenDocument family.It marks files that serve as blueprints for creating chart documents without starting from scratch.
Files using this type typically carry the OTC extension.
When an application loads a file of this kind, it applies predefined design settings for chart elements such as colors, fonts, gridlines, and layout.
- Main use: Enables consistent chart styling across multiple documents.
- Key feature: Stores preset design elements to speed up the chart-creation process.
- Practical functionality: Acts as a reusable design framework in office suites that follow the OpenDocument standard.
Associated file extensions
.odt, .ods, .otf, .odg, .odp, .odm, .odb, .odc, .odf, .otc, .ots, .ott, .otg, .oti, .otp, .oth, .odi, .fodg, .fodp, .fods, .fodt
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: application/vnd.oasis.opendocument.chart-template
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="application/vnd.oasis.opendocument.chart-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.chart-template');
res.end('Content here');
}).listen(3000);
Associated file extensions
.odt, .ods, .otf, .odg, .odp, .odm, .odb, .odc, .odf, .otc, .ots, .ott, .otg, .oti, .otp, .oth, .odi, .fodg, .fodp, .fods, .fodt
FAQs
Which file extension is associated with application/vnd.oasis.opendocument.chart-template?
This MIME type is primarily associated with the .otc file extension. While the OpenDocument family uses various extensions like .ods or .odt, the .otc extension specifically designates a chart template used to format new chart documents.
How do I open a file with this MIME type?
You need an office suite that supports the OpenDocument Format (ODF). Popular free options include LibreOffice and Apache OpenOffice. When you open an .otc file, the software typically creates a new, untitled chart document inheriting the styles and layout defined in the template.
How do I configure Apache to serve .otc files correctly?
To ensure Apache serves these files with the correct headers, add the following line to your .htaccess file or main configuration file: AddType application/vnd.oasis.opendocument.chart-template .otc. This ensures browsers and clients identify the file as a template rather than a generic binary stream.
What is the Nginx configuration for OpenDocument chart templates?
For Nginx, you should update your mime.types file or add a types block within your server configuration. Use the following syntax: application/vnd.oasis.opendocument.chart-template otc;. Restart Nginx to apply the changes.
What is the difference between application/vnd.oasis.opendocument.chart and the chart-template type?
The standard ...chart type (typically .odc) represents a saved chart document containing specific data. The ...chart-template type (typically .otc) acts as a blueprint containing only styling, colors, and layout definitions, allowing users to generate multiple consistent charts without redefining the design.
Why does my browser download the .otc file instead of opening it?
Most web browsers (Chrome, Firefox, Edge) do not have built-in engines to render OpenDocument files. Consequently, the browser defaults to downloading the file so you can open it with a desktop application like LibreOffice Calc or Impress.
Are there security risks involved with OpenDocument templates?
As with many office file formats, OpenDocument files can theoretically contain macros or scripts. While templates are generally used for styling, you should always be cautious and scan files from untrusted sources before opening them in your office 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.