One day, while working on my WordPress site, I encountered an error message that read, “Sorry, This File Type Is Not Permitted for Security Reasons.” This was inconvenient because I had to upload a file that was necessary for the site’s work. The WordPress system blocks some file types by default to eliminate possible risks.
This error states that the type of file you are uploading is not permitted. When you understand why WordPress has implemented certain limitations, you are well-positioned to address the solutions offered.
If you operate a WordPress website, you may be faced with an error message. Such issues can be annoying when, for example, you are trying to upload a file, which is crucial for the site’s running. WordPress has a default setting that prevents some file types from uploading due to security risks.
A self-hosted WordPress is a savior in such situations, offering greater control and flexibility to address these issues. Understanding why these restrictions exist makes it easier to find solutions.
The primary reason for this error is WordPress’s default file type restrictions. These restrictions protect your site from potential security risks associated with certain file types.
In my case, it was a simple SVG file that WordPress didn’t recognize as safe. Other contributing factors might include server configurations and specific security settings on your site, which may require you to fix the “sorry, you don’t see the file” error.
Ensure these settings include permissions for uploading file types in WordPress. WordPress has built-in security measures that restrict certain file types to prevent potential threats. Such situations can often result in the ‘Sorry. This File Type Is Not Permitted for Security Reasons’ error when trying to upload less common or potentially unsafe files.
Security plugins or settings within your WordPress installation can further restrict the types of files that can be uploaded, contributing to the error. Server settings or configurations, such as those in your .htaccess file or MIME-type settings, can restrict specific file uploads. Misconfigurations or stringent security settings at the server level might cause this error.

This error may occur because the individual file type is blocked by server settings or WordPress settings if it is allowed for large file-size uploads. Similarly, it may also be caused by the WordPress plugin no longer supported by the current version or flawed security settings.


One of the quickest ways to bypass this restriction is to modify the wp-config.php file. Adding the following line of code will help you upload any file type without limitations by enabling unfiltered uploads:
define(‘ALLOW_UNFILTERED_UPLOADS’, true);
I added this line to the wp-config.php file in my WordPress installation’s leading directory. Making these changes allowed me to upload any file type I needed. After saving the changes, I could upload the file without any issues.
However, this method poses significant security risks, as it allows any file type to be uploaded. Use this method with caution and consider other more secure options first. The “white screen of death” is a standard WordPress error. This issue often occurs due to PHP errors, plugin conflicts, or exhausted memory limits. If you need further assistance with troubleshooting, you might also want to learn how to address the WordPress white screen of death error.
Several plugins can help manage and allow additional file types without compromising security. I found this method to be both secure and user-friendly.

This plugin allows you to add custom file types easily. Here’s how I did it:
This secure solution allowed me to manage file types through an easy-to-use interface.

File manager plugins are typically more developed as they offer a way to manage a site’s files directly from the WordPress panel.
I used WP File Manager for this purpose. It provided a graphical interface for file management, making it easier to handle uploads and permissions without delving into server directories.
Another method to allow additional file types is manually adding an MIME type to your theme’s functions.php file.

Here’s how I did it:

This method lets you specify which MIME types should be permitted for uploads.
Modifying server settings can also resolve this issue. This process involves making changes to your .htaccess file or server configuration files to allow specific MIME types.

I added MIME types to my .htaccess file to permit uploads:
AddType application/zip .zip
AddType image/svg+xml .svg
This method ensures that the server recognizes and allows these file types.
For more advanced users, modifying the server configuration (e.g., on Apache or Nginx) to include the necessary MIME types can resolve the problem. I edited the server configuration file to add the required MIME types, ensuring my server could handle the file formats I needed.


If you’re using WordPress Multisite, you can enable specific file types across your network by adjusting the network settings.
This method ensures consistency across all sites in the network. Each site can then upload any permitted file type.
The improvement in performance and reliability has been impressive, especially after resolving the below-mentioned issues.
These practices help maintain a balance between functionality and security.
If the essential solutions don’t work, consider these advanced fixes:
Antivirus and firewall software can sometimes block certain file types. Temporarily turning these off can help determine if they are causing the problem.


Performing this check helped me determine if my security software was interfering with the upload process.
Resetting the TCP/IP stack can resolve network configuration issues that might be causing the file upload error.
Windows:

MacOS:

These steps helped refresh the network settings, resolving any underlying issues.
Issues can occur if the host file is misconfigured and you override DNS with it. To avoid conflict, confirm that your server accepts only the right file types in WordPress.
Windows:

MacOS/Linux:

However, the annoying message stating “Sorry, This File Type Is Not Permitted for Security Reasons” in WordPress can be resolved. Well, it is essential to know the common problems that cause this issue and that with their correct solutions, one can easily upload the required files without any hassles or risks of a website. For example, when you need to solve the ‘sorry you don’t see the file’ issue on your Mac OS X, you should only use secure methods for a task and do a security audit on your site constantly.