What is MIME type "application/vnd.oasis.opendocument.presentation"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
application/vnd.oasis.opendocument.presentation designates files that store slide presentations using the OpenDocument standard.These files hold slide data—text, images, and multimedia—in an XML structure. They let you create, edit, and display slide shows on various office software like LibreOffice Impress or Apache OpenOffice Impress.
- Main use: Building slide-based presentations.
- Interoperability: Exchange files among different platforms and applications.
- Editability: Easily modify slide layouts, graphics, and embedded media.
- Templates: Work with ready-made slide templates, such as those found in OTP files.
For more details on the standard, check out the OpenDocument specification.
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.presentation
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="application/vnd.oasis.opendocument.presentation">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.presentation');
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 extensions maps to application/vnd.oasis.opendocument.presentation?
The primary file extension for this MIME type is .odp (OpenDocument Presentation). While the OpenDocument standard includes other extensions like .odt for text and .ods for spreadsheets, the presentation subtype is specifically used for slide decks created in software like LibreOffice Impress.
How do I configure Apache to serve ODP files correctly?
To ensure browsers recognize OpenDocument presentations, add the following line to your .htaccess file or main configuration: AddType application/vnd.oasis.opendocument.presentation .odp. This prevents the server from sending the file as a generic binary stream.
What is the Nginx configuration for OpenDocument presentations?
For Nginx, you should verify that your mime.types file includes the definition, or add it manually to your server block: types { application/vnd.oasis.opendocument.presentation odp; }. Reload Nginx after making changes to apply the new content type.
Why does my browser download the ODP file instead of opening it?
Most web browsers (Chrome, Firefox, Edge) do not have native support to render OpenDocument files directly in the tab. Instead, they interpret the MIME type as a signal to download the file so it can be opened locally in an application like Apache OpenOffice or LibreOffice.
Can I use this MIME type for .otp template files?
Technically, templates use a distinct subtype: application/vnd.oasis.opendocument.presentation-template. However, some server configurations may group .otp files under the standard presentation MIME type for simplicity, though it is better practice to separate them to ensure the client software opens them as a new untitled document.
Why does the file open as a ZIP archive when I change the extension?
OpenDocument files are actually XML-based content compressed into a ZIP container. If a server sends the wrong MIME type (like application/zip), a user might see the internal folder structure (meta.xml, content.xml) instead of the presentation. Correct MIME headers ensure the associated software handles the package as a slide show.
Is application/vnd.oasis.opendocument.presentation secure?
Generally, yes, as the format is an open standard based on XML. However, like other office document formats, ODP files can contain macros or scripts. Always scan files from untrusted sources before opening them in your presentation software.
How does this MIME type differ from Microsoft PowerPoint files?
This MIME type represents the ISO-standardized OpenDocument format, favored by open-source software. Microsoft PowerPoint uses application/vnd.openxmlformats-officedocument.presentationml.presentation for .pptx files. While they serve the same purpose, the underlying XML structure and MIME definitions are different.
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.