Title: WP Add Mime Types
Author: kimipooh
Published: <strong>ଅଗଷ୍ଟ 16, 2013</strong>
Last modified: ମାର୍ଚ୍ଚ 30, 2025

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/wp-add-mime-types.svg)

# WP Add Mime Types

 By [kimipooh](https://profiles.wordpress.org/kimipooh/)

[Download](https://downloads.wordpress.org/plugin/wp-add-mime-types.3.1.2.zip)

 * [Details](https://ory.wordpress.org/plugins/wp-add-mime-types/#description)
 * [Reviews](https://ory.wordpress.org/plugins/wp-add-mime-types/#reviews)
 *  [Installation](https://ory.wordpress.org/plugins/wp-add-mime-types/#installation)
 * [Development](https://ory.wordpress.org/plugins/wp-add-mime-types/#developers)

 [Support](https://wordpress.org/support/plugin/wp-add-mime-types/)

## Description

The plugin additionally allows the mime types and file extensions to WordPress. 
In other words, your WordPress site can upload various file extensions.

## Screenshots

 * [[
 * Setting Menu
 * [[
 * Setting Menu in case of the multisite
 * [[
 * Ignore to the right of ‘#’ on a line
 * [[
 * Security Options

## Installation

Please install this plugin and activate it.
 If you use a language except English,
please update the translation data in the updates of Dashboard.

If the multisite is enabled, please check the setting menu in the network administrator.

#### Usage

First of all, please check the “Media Type Settings” in the “Settings”.
 You can
see the list of allowed mime types and file extensions by WordPress.

When you add the mime type or file extension, the data will be added to last item
in this list at the red color.

About the mime type list, please see the list of mime types in the information of
the Internet.
 Ex. http://www.freeformatter.com/mime-types-list.html

The user who have the [manage_options](https://codex.wordpress.org/Roles_and_Capabilities#manage_options)
permission can only add the setting.

If you would like to translate it to your language, please visit the GlotPress from
https://wordpress.org/plugins/wp-add-mime-types/ .

If the multisite is enabled, the multisite network administrator can add/change/
delete the mime type value in the multisite network setting menu. And the multisite
network administrator or the site administrator can only see the past value (cannot
change) before the site was migrated to the multisite.

## FAQ

### It fails to upload a file for the security reasons of WordPress despite having set it up with this plugin!

If it fails to upload a file for the security reasons of WordPress despite having
set it up with this plugin, then the MIME type of the uploaded file recognised by
WordPress may be different from the MIME type you have set. In that case, you need
to find out how WordPress recognised the MIME type of the file.
 So, turn on “Enable
to debug output for file types recognized by WordPress when a file is uploaded by
the media.” setting. and upload a file and set “mime type” recognized by WordPress
in the setting of this plugin. Please keep in mind that the “Enable to debug output
for file types recognised by WordPress when a file is uploaded by the media.” setting
must be turned off after you finish checking the mime type. If it is left on, file
uploads will not work. Reference: https://docs.google.com/presentation/d/1o4YHqP7s-
EcctYSEYM2L7HLJtqhjA_mkY4VMjvTdj20/edit?usp=sharing (Google Slide)

### How to check the uploaded file type from Media.

WordPress recognizes the file mime type by finfo_file function (wp-includes/functions.
php). However, sometimes, the standard MIME type of a file and the MIME type of 
a WordPress-recognized file are different. By enabling both this option (in setting
menu) and the “Enable the attempt to determine the real file type of a file by WordPress
core.”, the file type is displayed if it is from Media. PLEASE keep in mind that
a file uploads are stopped while they are being processed if the both of two options
are enabled. Therefore, be sure to disable this debugging option after debugging.

### Cannot work

If the added mime type does not work, please deactivate other mime type plugins 
or the setting of other mime type plugins.

For example, if you install Media Library Assistant plugin, please turn off “Enable
Upload MIME Type Support” in the Upload tag in this plugin setting.

### Can the plugin support the multi extensions?

Yes. The function was supported by Version 2.4.0.
 WordPress sanitizes the filename
in case of 2 or more extensions. ex. XXX.YYY.ZZZ –> XXX_.YYY.ZZZ. The plugin fixes
the sanitized extension when a file is uploaded in the media in case of allowed 
extensions. ex. XXX.YYY.ZZZ — sanitized –> XXX_.YYY.ZZZ — fixed the plugin –> XXX.
YYY.ZZZ In detail, please see sanitize_file_name function in “wp-includes/formatting.
php”.

### Can I comment out in the setting value?

Yes. You can comment out above version 2.3.0.

### Can the plugin avoid the security check for a file content by WordPress core?

Yes. WordPress core has implemented the security check for a file content since 
version 4.7.1.
 The plugin’s default setting disables this security check .

### How do the plugin behave when it is installed and activated on the multisite network administration dashboard?

The setting in the multisite network administration dashboard is taken precedence.
The setting in each site administration dashboard is displayed, but the values aren’t
applied.

### How do the plugin behave when it is deactivated/uninstalled on the multisite network administration dashboard?

The setting values in each site administration dashboard in case of activating the
plugin in each site is applied.

### Don’t the setting values in the multisite network administration dashboard and the setting values in each site administration dashboard influence each other?

Yes, each setting values are saved as the other setting items.

### Is it possible to restrict the extensions?

Yes, it is available on the version 3.0.0.
 If the head in each line is set to ‘-‘,
then the MIME type restricts. ex. -bmp = image/bmp The files which has “bmp” file
extention becomes not to be able to upload.

## Reviews

![](https://secure.gravatar.com/avatar/b587ebdd76a0a92b780d14716ec226f7887b00504c19b9abd6b4f58ad36c5a4e?
s=60&d=retro&r=g)

### 󠀁[Just doesn’t effing work](https://wordpress.org/support/topic/just-doesnt-effing-work/)󠁿

 [halfsparkle](https://profiles.wordpress.org/halfsparkle/) ମଇ 6, 2024

The one font I needed I couldn’t use.

![](https://secure.gravatar.com/avatar/3f4cadbdaf37a637fe38964add867f5b19638e43cda955ee4f4036d81e08648b?
s=60&d=retro&r=g)

### 󠀁[gpx file renamed on mobile apps](https://wordpress.org/support/topic/gpx-file-renamed-on-mobile-apps/)󠁿

 [jerre79](https://profiles.wordpress.org/jerre79/) ଜୁନ୍ 29, 2023 1 reply

works incredible on a desktop, but after trying some agents on a mobile phone it
seems not to work. it rename all the gpx files in tog *.gpx.txt (*=filename)

![](https://secure.gravatar.com/avatar/f819addd6f8462c0dbad8d96c3ba9a45736db55193ecdc64b90b65721ae9089d?
s=60&d=retro&r=g)

### 󠀁[It worked for HEIF and HEIC after trying two others](https://wordpress.org/support/topic/it-worked-for-heif-and-heic-after-trying-two-others/)󠁿

 [IntegriTivity](https://profiles.wordpress.org/integritivity/) ଅଗଷ୍ଟ 24, 2022

How to configure a custom type was a bit unclear, but I figured it out and it worked.
Thank you! In the custom settings, I added heif = image/heif heic = image/heic (
You have to keep all your custom additions in that box. Don’t “add” one, then change
it and “add” that one as well, or you’ll lose the first one.) The other plugins 
I could not get to work for me were: – File Upload Types by Wpforms – WP Extra File
Types (for HEIC)

![](https://secure.gravatar.com/avatar/9489dac21975ba56f3bf5b8b40f9de52a29c848f297d8441b19e7d0a858441de?
s=60&d=retro&r=g)

### 󠀁[the best](https://wordpress.org/support/topic/the-best-2221/)󠁿

 [dolceremy](https://profiles.wordpress.org/centoasa/) ଫେବୃୟାରୀ 28, 2022

For me the best plugin to use with m4a audio files recording by windows. The plugin
allow upload for all users!

![](https://secure.gravatar.com/avatar/9fdc3a6381194f93141c7a31bc4f4e2e1cce3bf54f3fd6fc095db532596cd630?
s=60&d=retro&r=g)

### 󠀁[Works with Version 5.9.1](https://wordpress.org/support/topic/works-with-version-5-9-1/)󠁿

 [Duke Snoogens](https://profiles.wordpress.org/mikeloucas/) ଫେବୃୟାରୀ 23, 2022

Turned on, uploaded. Works with Version 5.9.1

![](https://secure.gravatar.com/avatar/45d85d2c061ad2893349818306ba6ea9c79992f86504b9efebd4a1c495267e89?
s=60&d=retro&r=g)

### 󠀁[Works perfectly](https://wordpress.org/support/topic/works-perfectly-1963/)󠁿

 [marekszewczyk](https://profiles.wordpress.org/marekszewczyk/) ମଇ 31, 2020

Tried with GPX files (application/xml) and it works like a gem. Thank you!

 [ Read all 24 reviews ](https://wordpress.org/support/plugin/wp-add-mime-types/reviews/)

## Contributors & Developers

“WP Add Mime Types” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ kimipooh ](https://profiles.wordpress.org/kimipooh/)

“WP Add Mime Types” has been translated into 4 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wp-add-mime-types/contributors)
for their contributions.

[Translate “WP Add Mime Types” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-add-mime-types)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-add-mime-types/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-add-mime-types/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-add-mime-types/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-add-mime-types/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.1.2

 * Tested up WordPress 6.7.2 with PHP 8.3.19 and 8.4.5.
 * PHP 7.4 will soon no longer be supported.

#### 3.1.1

 * Fixes the type format mismatch issues since PHP 8.1 or later.
 * Tested up WordPress 6.6.1 with PHP 8.3.6.

#### 3.1.0

 * Fixes type format mismatch issues in variable initialisation.
 * Tested up WordPress 6.4.2 with PHP 8.2.0.
 * Changed to require WordPress 6.2+ and PHP 7.4+.
 * Tested up WordPress 6.5.2 with PHP 8.3.6.

#### 3.0.3

 * Fixed warning checking when retrieving serialized data.

#### 3.0.2

 * Enhanced error checking when retrieving serialized data.

#### 3.0.1

 * Fixed warning when the $settings data gets.

#### 3.0.0

 * Added the mime type restriction function by using ‘-‘ prefix. If the head in 
   each line is set to ‘-‘, then the MIME type restricts. In case of “-bmp = image/
   bmp”, the files which has “bmp” file extention becomes not to be able to upload.
 * Fixed the warning on the multisite.
 * Tested up WordPress 5.6.2 with PHP 8.0.0.
 * Tested up WordPress 5.8
 * Tested up WordPress 6.0

#### 2.5.8

 * Fixed the issue of the media uploads failing when activating this plugin for 
   the first time, if the plugin settings are not saved whenever.

#### 2.5.7

 * Removed the folder (trunk) for this plugin in this plugin folder. The “trunk”
   folder was not needed. Due to this, activating the plugin in version 2.5.6, you
   might get an error message “Error: The plugin does not have a valid header”.

#### 2.5.6

 * Added the “Enable to debug output for file types recognized by WordPress when
   a file is uploaded by the media.” security option. In detail, please see “Frequently
   Asked Questions” section.
 * Tested up to WordPress 5.6 and PHP 7.4.

#### 2.5.5

 * Fixed the error “the “Too few argument” for WordPress 5.0 or previous versions.

#### 2.5.4

 * Added the function for removing this plugin’s settings in the database when this
   plugin is uninstall.
 * Fixed the function names for not influencing the function name for other plugins.

#### 2.5.3

 * Fixed the issue of “Undefined variable: f_exp_more2_flag” warning.

#### 2.5.2

 * Improved the response of CSRF (Cross-Site Request Forgery) vulnerability for 
   this plugin’s settings.

#### 2.5.1

 * Added the response of CSRF (Cross-Site Request Forgery) vulnerability for this
   plugin’s settings.

#### 2.5.0

 * Added the security option item in the admin menu for enabling the security check
   for a file content and for sanitizing the multiple file extensions within the
   filename by WordPress core.
 * Supported the new language setting regarding load_plugin_textdomain function.

#### 2.4.1

 * Changed remove_underscore function name to wpaddmimetypes_remove_underscore because
   of the avoidance of the name conflict.
 * Tested up to WordPress 5.2.2 and PHP 7.4.

#### 2.4.0

 * Support of the multi extension. Even if the file extension is “XXX.ZZZ”, “XXX.
   YYY.ZZZ”, “AAA.XXX.YYY.ZZZ” or more, it always picks up the tail of the extensions.

#### 2.3.1

 * Tested up to WordPress 5.2.2 and PHP 7.3.

#### 2.3.0

 * Tested up to WordPress 5.0 and PHP 7.2.

#### 2.2.1

 * Tested up to WordPress 4.9.

#### 2.2.0

 * Fixed foreach function warning if a setting value is empty.
 * Added to escape HTML tags in a setting value using wp_strip_all_tags function.
 * Added to ignore to the right of ‘#’ on a line.

#### 2.1.3

 * Tested up to WordPress 4.8 and PHP 7.1

#### 2.1.2

 * Fixed the warning issue regarding explode function.
 * Tested up to WordPress 4.7.2

#### 2.1.1

 * Fixed the issue that the safe files in WordPress, such as jpg, png, pdf cannot
   be uploaded.

#### 2.1.0

 * Tested up to WordPress 4.7.1
 * Fixed finfo_file issue. See FAQ section.

#### 2.0.6

 * Tested up to WordPress 4.7

#### 2.0.5

 * Tested up to WordPress 4.6

#### 2.0.4

 * Fixed the help message in the administration menu.

#### 2.0.3

 * Fixed the help message in the administration menu.
 * If the added mime type does not work, please turn off the mime type setting or
   deactivate other mime type plugins.

#### 2.0.2

 * Fixed the compatibility with Media Library Assistant plugin.

#### 2.0.1

 * Fixed the message in the setting menu

#### 2.0.0

 * Supported Multisite.
 * Tested up to WordPress 4.5.1

#### 1.3.13

 * Tested up to WordPress 4.5.

#### 1.3.12

 * Migrated the translation function to GlotPress. If you translate it to your language,
   please visit the GlotPress from https://wordpress.org/plugins/wp-add-mime-types/.

#### 1.3.11

 * Preparation of migrating the translation function to GlotPress.

#### 1.3.10

 * Tested up to WordPress 4.4.2

#### 1.3.9

 * Tested up to WordPress 4.4.1

#### 1.3.8

 * Tested up to WordPress 4.4
 * Fixed language translation setting.

#### 1.3.7

 * Tested up to WordPress 4.3

#### 1.3.6

 * Fixed load_plugin_textdomain setting.

#### 1.3.5

 * Fixed load_plugin_textdomain setting.

#### 1.3.4

 * Tested up to WordPress 4.2.2

#### 1.3.3

 * Tested up to WordPress 4.1.1

#### 1.3.2

 * Tested up to WordPress 4.0

#### 1.3.1

 * Tested up to WordPress 3.9.1

#### 1.3.0

 * Tested up to WordPress 3.9

#### 1.2.1

 * Fixed Language support

#### 1.2.0

 * Tested up to WordPress 3.8

#### 1.1.0

 * Tested up to WordPress 3.7.1

#### 1.0.1

 * Fixed the display error if the setting value is empty for the first time.

#### 1.0.0

 * First Released.
 * Language: English, Japanese

## Meta

 *  Version **3.1.2**
 *  Last updated **1 year ago**
 *  Active installations **50,000+**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **6.7.5**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/wp-add-mime-types/), [English (US)](https://wordpress.org/plugins/wp-add-mime-types/),
   [Japanese](https://ja.wordpress.org/plugins/wp-add-mime-types/), [Korean](https://ko.wordpress.org/plugins/wp-add-mime-types/),
   and [Polish](https://pl.wordpress.org/plugins/wp-add-mime-types/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wp-add-mime-types)
 * Tag
 * [mime](https://ory.wordpress.org/plugins/tags/mime/)
 *  [Advanced View](https://ory.wordpress.org/plugins/wp-add-mime-types/advanced/)

## Ratings

 4.2 out of 5 stars.

 *  [  17 5-star reviews     ](https://wordpress.org/support/plugin/wp-add-mime-types/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/wp-add-mime-types/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/wp-add-mime-types/reviews/?filter=3)
 *  [  2 2-star reviews     ](https://wordpress.org/support/plugin/wp-add-mime-types/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/wp-add-mime-types/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-add-mime-types/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-add-mime-types/reviews/)

## Contributors

 *   [ kimipooh ](https://profiles.wordpress.org/kimipooh/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-add-mime-types/)