Pro Mime Types allows you to set allowed upload mime types through a nifty network admin menu and considers WPMUdev's Pro Sites!
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.
I enabled a file type, but I still couldn’t upload it!
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.
Which file extensions are supported?
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, pcm, 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, epub, 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.
Which MIME types are supported?
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, audio/x-wav, 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/epub+zip, 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.
I cannot enable PHP uploads?
No. Direct PHP file uploads cannot be enabled via this plugin. You should use SFTP or FTP for that.