How To Fix ‘Sorry, This File Type Is Not Permitted For Security Reasons’ WordPress Error – Netadroit WebDesign
As a WordPress consumer, there’ll come a time when it’s essential to add some forms of information to your website.
Maybe you’re making a website that permit customers obtain information or perhaps you wish to add a downloadable incentive to your e mail optin kind.
However, quickly you’ll uncover that WordPress really don’t prefer it if you add particular forms of information. If you attempt to add a file that WordPress doesn’t like, you’ll get an error saying “Sorry, This File Type Is Not Permitted For Security Reasons”
Thankfully, there’s a straightforward repair for this downside and we’re going to stroll you thru it, step-by-step.
What Is ‘Sorry, This File Type Is Not Permitted For Security Reasons’ Error?
First of all, this can be a widespread error for many bloggers and WordPress customers. So, don’t be alarmed or panic. The problem can be simply mounted.
WordPress’ personal system is responsible for this error. Even although WordPress is a content material administration system, it nonetheless has a really strict filtering system for accepting solely a choose few forms of information into the system.
And, if you making an attempt to add a file that’s not in WordPress’ supported information listing, you’ll encounter the “Sorry, This File Type Is Not Permitted For Security Reasons” error.
What Causes This Error?
As there are various several types of information utilized by several types of functions. For instance, .AI is a quite common file kind utilized by Adobe Illustrator.
This file kind is broadly utilized by designers and illustrators to avoid wasting and share their work. But, don’t be shocked when you get a “Sorry, This File Type Is Not Permitted For Security Reasons” error when making an attempt to add an .AI file to WordPress as a result of the file kind is just not in WordPress’ supported information listing.
This is the total listing of file varieties allowed in WordPress by default.
It’s baffling that WordPress nonetheless doesn’t help fashionable and customary file varieties like Illustrator by default. And it’s solely one of many dozens of file varieties that WordPress nonetheless doesn’t help.
So sure, this time you possibly can blame WordPress for placing you thru this complicated error. But, you possibly can repair this problem manually to add any file kind you need.
How To Fix The Error
There are two easy methods to repair the “Sorry, This File Type Is Not Permitted For Security Reasons” error. One technique required utilizing a plugin and the opposite requires enhancing a core WordPress file.
Before you proceed we extremely suggest that you just backup your website. If you don’t have a backup system but, you possibly can set it up utilizing a free plugin.
Method 1: Use A Mime Types Plugin
There are a number of mime varieties plugins that provide help to add your individual file varieties to the WordPress supported information listing, like Pro Mime Types, Mime Types Extended, and Unsafe Mimetypes. Unfortunately, most of those plugins are outdated.
We’re utilizing the WP Add Mime Types plugin for the tutorial because it’s been up to date to help the newest WordPress variations. Feel free to attempt to use a special plugin when you want.
Step 1: Install WP Add Mime Types Plugin
To Install the plugin, login to your WordPress dashboard and go to Plugins >> Add New.
Search for the WP Add Mime Types plugin and click the Install and then Activate buttons to enable the plugin.
Step 2: Customize The Plugin
After the installation, a new page will appear in the Settings page called Mime Type Settings. From this page, you can add certain file types to add them to the WordPress system.
Search for the file type you want to add and copy-paste it into the Add Values box. Make sure that you copy the entire line related to the file type extension you’re making an attempt so as to add.
Then click on on the Save button to avoid wasting the modifications. Once the file kind is enabled, it is going to be highlighted in coloration crimson on the listing.
The only issue with this method is that even the mime type plugins have limits when it comes to adding certain file types. For example, the plugin doesn’t permit importing of .AI information. But, the second technique enables you to keep away from that downside and add any file you need.
Method 2: Edit WP-Config File
WP-Config.php is a core file utilized by WordPress that handles lots of WordPress performance. You can edit this file to disable the system that forestalls importing of sure file varieties. After that, you’ll have the ability to add any file kind you need.
Step 1: Access Your Server
You can edit the WP-Config file by utilizing an FTP consumer app or by logging into your server CPanel and utilizing the File Manager.
Navigate to the general public folder the place your WordPress website is hosted and the place all of the WordPress core information are positioned.
Step 2: Edit WP-Config.php
Then open and edit the WP-Config file.
Once you’ve gotten the file opened, merely search for the time period /* That’s all, cease enhancing! Happy running a blog. */
Then paste the next line of code proper above it
Still Getting The Same Error?
The above strategies ought to do the trick that will help you add virtually any kind of file you need in WordPress. However, when you nonetheless get the identical error you need to attempt contacting your internet hosting supplier and search their assist.
Some web hosts forestall sure forms of information being uploaded for safety causes. If you retain getting the error and also you desperately must add the file in WordPress, contact the internet hosting supplier’s buyer help and see if they’ve some filters stopping you from importing any information.