WordPress Developer and Marketing Automation Experts in India

Fix WordPress Issue “Sorry, this file type is not permitted for security reasons.” (eg: fonts)

Sometimes you try to upload a file on your WordPress site and get the error message “Sorry, this file type is not permitted for security reasons.” As shown in the following screenshot, you cannot upload this file.

This is because WordPress only allows users to upload one of the following file types by default. If you try to upload another file type, you receive the “Sorry, this file type is not permitted for security reasons.” error message.

In order to allow file types other than those listed above to be uploaded, you can resolve this issue using one of the following methods.

Fix The Issue Using WordPress Plugins

You can use any of the following plugins on your site and configure it to allow to upload file types on your site.

WP Add Mime Types

Mime Types Extended

Unsafe Mimetypes

Mime Types Plus

Manage Upload Types

Fix The Issue To Allow To Upload All File Types In File Upload

You can set the WordPress constant ALLOW_UNFILTERED_UPLOADS to true to upload all file types to your WordPress site.

To set the constant ALLOW_UNFILTERED_UPLOADS to true, simply add the following line of code to the wp-config.php file of your WordPress installation, which you can find in the root directory of your WordPress setup.


You can add the above line of code in the wp-config.php file just above the following statement.

Fix The Issue Using WordPress Multisite Settings

If you are using WordPress Multisite, you can add the file types you want to upload to the “Upload File Type” option of the WordPress Multisite Upload Settings in the Network Management Zone as follows.

Network Admin Area -> Settings -> Upload Settings

Fix The Issue By Contacting Web Host

If using one of the solutions above didn’t solve your problem, it might be your web hosting problem because many hosts don’t support different types of server upload files due to security issues so you can connect to your web host. to activate it.

services isuremedia