MIME Type .pptx: application/vnd.openxmlformats-officedocument.presentationml.presentation

File berekstensi .pptx (Microsoft PowerPoint) menggunakan MIME type application/vnd.openxmlformats-officedocument.presentationml.presentation.

Diperbarui

application/vnd.openxmlformats-officedocument.presentationml.presentation
MIME type untuk .pptx
Dokumen
Kategori
Tidak
Kompres dengan gzip/Brotli

Apa MIME type untuk file .pptx?

MIME type (media type) untuk file Microsoft PowerPoint dengan ekstensi .pptx adalah application/vnd.openxmlformats-officedocument.presentationml.presentation. Berupa file Office Open XML berbasis ZIP.

Header Content-Type

Content-Type: application/vnd.openxmlformats-officedocument.presentationml.presentation; charset=utf-8

Tipe berbasis teks sebaiknya menyertakan charset agar browser men-decode karakter dengan benar.

Konfigurasi server

ServerKonfigurasi
Nginx (mime.types or types {})application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
Apache (.htaccess)AddType application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx
IIS (web.config)<mimeMap fileExtension=".pptx" mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
Node.js / Expressres.type('pptx') atau res.setHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.presentationml.presentation; charset=utf-8')
Amazon S3Atur Content-Type: application/vnd.openxmlformats-officedocument.presentationml.presentation pada objek (metadata), atau teruskan --content-type application/vnd.openxmlformats-officedocument.presentationml.presentation ke aws s3 cp

Apakah file .pptx perlu dikompres?

Tidak. File Microsoft PowerPoint sudah terkompresi di dalamnya, jadi gzip atau Brotli hanya membuang CPU dan hampir tidak mengurangi ukuran — kadang malah membesarkannya. Jangan sertakan application/vnd.openxmlformats-officedocument.presentationml.presentation dalam konfigurasi kompresi kamu.

Mengapa MIME type penting

Browser memutuskan apa yang harus dilakukan terhadap sebuah respons — menampilkan, menjalankan, memutar, atau mengunduh — berdasarkan header Content-Type, bukan ekstensi file. Dengan X-Content-Type-Options: nosniff, tipe yang salah menyebabkan stylesheet dan script diblokir sepenuhnya. Untuk unggahan, jangan pernah percaya tipe yang dikirim klien; periksa isi file (magic bytes-nya) di server.

Pertanyaan yang sering diajukan

Apa MIME type untuk .pptx?
application/vnd.openxmlformats-officedocument.presentationml.presentation.
Bagaimana cara mengatur Content-Type untuk .pptx di Nginx?
Pastikan application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; sudah ada di blok types (biasanya di /etc/nginx/mime.types), lalu muat ulang Nginx.
Apakah file .pptx sebaiknya dikompres dengan gzip?
Tidak — formatnya sudah terkompresi, jadi kompresi HTTP tidak memberi manfaat.