.odp MIME type
OpenDocument presentationdocuments
application/vnd.oasis.opendocument.presentationLibreOffice Impress presentations — the OpenDocument counterpart to .pptx.
| MIME type | application/vnd.oasis.opendocument.presentation |
|---|---|
| Extensions | .odp |
| Content-Type | application/vnd.oasis.opendocument.presentation |
| Compress in transit? | No — already compressed |
| File signature | 50 4B 03 04 (PK..) the ZIP signature — this format is a ZIP archive inside |
Good to know
- Like every OpenDocument file, it's a ZIP archive whose first entry,
mimetype, names the exact type.
Serve .odp files with the right type
The response header to send:
Content-Type: application/vnd.oasis.opendocument.presentation
Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:
application/vnd.oasis.opendocument.presentation odp;
AddType application/vnd.oasis.opendocument.presentation .odp
res.set("Content-Type", "application/vnd.oasis.opendocument.presentation");import mimetypes
mimetypes.add_type("application/vnd.oasis.opendocument.presentation", ".odp")<input type="file" accept=".odp,application/vnd.oasis.opendocument.presentation">
Check it
See what a server sends for a file, and what type a local file really is by its contents:
curl -sI https://example.com/file.odp | grep -i '^content-type:' file --mime-type file.odp
Frequently asked questions
What is the MIME type for .odp files?
application/vnd.oasis.opendocument.presentation.
What Content-Type header should a .odp file be served with?
Content-Type: application/vnd.oasis.opendocument.presentation. It's already compressed, so servers shouldn't gzip it.
How can I tell if a file is really a .odp?
Check its bytes rather than the extension: ODP files start with 50 4B 03 04 (PK..) — the ZIP signature — this format is a ZIP archive inside. On the command line, file --mime-type name.odp does this for you.
Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options