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 allows users to upload only 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.

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 one of the following plugins on your site and configure it to allow you to upload any type of file to your site.

WP added the MIME type

Extended MIME type

Unsafe mimetotypes

Mime Plus type

Manage upload types

Fix The Issue Using WordPress Multisite Settings

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

To set a 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.

/* That's all, stop editing! Happy blogging. */

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 (see photo below).

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