Pro Mime Types adds a nifty admin interface for allowing or blocking many file extensions for uploading media, documents, and other attachments.
Pro Mime Types adds a nifty (network) admin interface for allowing or blocking many file extensions for uploading media, documents, and other attachments.
It also shows you a list of all allowed MIME types on the site or network.
For WordPress Multisite networks, you can enable this plugin in network mode to control MIME types for the entire network.
This plugin can run in network mode, where all sites are allowed one set of MIME types. You can configure the allowed MIME types via the network administration UI.
Alternatively, Pro Mime Types can run in single-site mode, where every subsite has custom-allowed MIME types. Only the network administrator can assign these on a per-site basis.
Not all PHP installations recognize MIME types the same way, making it difficult for us to test every file type.
Some file types are blocked by WordPress itself when the server lacks support for them, such as .avif
and .webp
.
If you find an issue, please open a support topic or GitHub issue and detail your website’s PHP version and image extension so we can start investigating the MIME type.
avif, avifs
, bmp
, gif
, heic
, heif
, ico
, jpg
, jpeg
, jpe
, jif
, jfif
, png
, svg
, tif
, tiff
, webp
, aac
, ac3
, aff
, aif
, aiff
, flac
, mid
, midi
, mka
, mp1
, mp2
, mp3
, m3a
, m4a
, m4b
, ogg
, oga
, ra
, ram
, wav
, wax
, wma
, 3g2
, 3gp2
, 3gp
, 3gpp
, asf
, asx
, avi
, divx
, mkv
, mov
, qt
, mp4
, m4v
, mpeg
, mpg
, mpe
, mpv
, vob
, ogv
, ogm
, rm
, webm
, wm
, wmv
, wmx
, doc
, docm
, docx
, dotm
, dotx
, odt
, oxps
, pages
, pdf
, psd
, ai
, rtf
, wri
, wp
, wpd
, xcf
, xps
, numbers
, ods
, xla
, xls
, xlt
, xlw
, xlam
, xlsb
, xlsm
, xlsx
, xltm
, xltx
, key
, odp
, pot
, pps
, ppt
, potm
, potx
, ppam
, ppsm
, ppsx
, pptm
, pptx
, sldm
, sldx
, csv
, ics
, md
, rtx
, tsv
, txt
, asc
, c
, cc
, h
, srt
, vtt
, 7z
, cab
, gz
, gzip
, img
, 2mg
, smi
, dmg
, rar
, tar
, zip
, css
, dfxp
, htm
, html
, js
, xml
, php
, class
, exe
, mdb
, mpp
, odb
, odc
, odf
, odg
, onetoc
, onetoc2
, onetmp
, and onepkg
.
image/avif, image/bmp
, image/gif
, image/heic
, image/x-icon
, image/jpeg
, image/png
, image/svg+xml
, image/tiff
, image/webp
, audio/aac
, audio/ac3
, audio/aiff
, audio/flac
, audio/midi
, audio/x-matroska
, audio/mpeg
, audio/ogg
, audio/x-realaudio
, audio/wav
, audio/x-ms-wax
, audio/x-ms-wma
, video/3gpp2
, video/3gpp
, video/x-ms-asf
, video/avi
, video/divx
, video/x-matroska
, video/quicktime
, video/mp4
, video/mpeg
, video/ogg
, application/vnd.rn-realmedia
, video/webm
, video/x-ms-wm
, video/x-ms-wmv
, video/x-ms-wmx
, application/msword
, application/vnd.ms-word.document.macroEnabled.12
, application/vnd.openxmlformats-officedocument.wordprocessingml.document
, application/vnd.ms-word.template.macroEnabled.12
, application/vnd.openxmlformats-officedocument.wordprocessingml.template
, application/vnd.oasis.opendocument.text
, application/oxps
, application/vnd.apple.pages
, application/pdf
, image/vnd.adobe.photoshop
, application/postscript
, application/rtf
, application/vnd.ms-write
, application/wordperfect
, image/x-xcf
, application/vnd.ms-xpsdocument
, application/vnd.apple.numbers
, application/vnd.oasis.opendocument.spreadsheet
, application/vnd.ms-excel
, application/vnd.ms-excel.addin.macroEnabled.12
, application/vnd.ms-excel.sheet.binary.macroEnabled.12
, application/vnd.ms-excel.sheet.macroEnabled.12
, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
, application/vnd.ms-excel.template.macroEnabled.12
, application/vnd.openxmlformats-officedocument.spreadsheetml.template
, application/vnd.apple.keynote
, application/vnd.oasis.opendocument.presentation
, application/vnd.ms-powerpoint
, application/vnd.ms-powerpoint.template.macroEnabled.12
, application/vnd.openxmlformats-officedocument.presentationml.template
, application/vnd.ms-powerpoint.addin.macroEnabled.12
, application/vnd.ms-powerpoint.slideshow.macroEnabled.12
, application/vnd.openxmlformats-officedocument.presentationml.slideshow
, application/vnd.ms-powerpoint.presentation.macroEnabled.12
, application/vnd.openxmlformats-officedocument.presentationml.presentation
, application/vnd.ms-powerpoint.slide.macroEnabled.12
, application/vnd.openxmlformats-officedocument.presentationml.slide
, text/csv
, text/calendar
, text/markdown
, text/richtext
, text/tab-separated-values
, text/plain
, text/vtt
, application/x-7z-compressed
, application/vnd.ms-cab-compressed
, application/x-gzip
, application/x-apple-diskimage
, application/rar
, application/x-tar
, application/zip
, text/css
, application/ttaf+xml
, text/html
, application/javascript
, application/xhtml+xml
, application/x-httpd-java
, application/x-msdownload
, application/vnd.ms-access
, application/vnd.ms-project
, application/vnd.oasis.opendocument.database
, application/vnd.oasis.opendocument.chart
, application/vnd.oasis.opendocument.formula
, application/vnd.oasis.opendocument.graphics
, and application/onenote
.
No. Direct PHP file uploads cannot be enabled via this plugin. You should use FTP for that.
Pro_Mime_Types\get_allowed_mime_types_settings()
. Since the value is useable in the same manner as before, we didn’t change or deprecate the function name.image/avif
, extensions avif
or avifs
). The site requires WP 6.5 or later to make the upload editable — however, WP 6.5 has various bugs with this.pro_mime_types_db_version
, separately for networks and single-site activations (depending on how it’s activated). This option allows for upgrading the settings over time.Pro_Mime_Types\SUPPORTED_MIME_TYPES
is now an associative array (with index keys) instead of a sequential one. pmt_supported_mime_types
, but sequential values can still be used, though they may not be stored properly.