Do you want to Fix ‘SORRY THIS FILE IS NOT PERMITTED FOR SECURITY REASONS’ WordPress Error in Website?
In your WordPress website, you add contents, publish posts, pages and perform various activities on the daily basis. This is how your site functions and you run your business.
When you try uploading a file to the media library of the site, it shows ‘SORRY THIS FILE IS NOT PERMITTED FOR SECURITY REASONS.’ Not to worry, this is a common error that you can solve in no time.
Why does ‘SORRY THIS FILE IS NOT PERMITTED FOR SECURITY REASONS’ error occur in the site?
By default, you can upload images, media, documents and compressed archives in various file formats(jpg, jpeg, png, gif, pdf, .doc, .zip, etc) in WordPress. But, when you try to upload unsupported file type to the library, you will get this error.
The reason behind it is WordPress performs restrictions to protect its users from malicious functions that can affect your website negatively causing vulnerabilities to hackers.
How to Fix the Error in the Site?
You can Fix the error in your site using various methods. In this tutorial, I have listed three different way to Fix ‘SORRY THIS FILE IS NOT PERMITTED FOR SECURITY REASONS’ WordPress Error.
Using a WordPress Plugin
WordPress has the availability of different Multipurpose Internet Mail Extension(MIME) plugins that can help you to upload the unsupported file in the media library of the site. In this tutorial, we will be using the Enhanced Media Library plugin. Install and Activate the plugin on your site.
Follow our tutorial guide on ‘How to Install New Plugin in the site?’
- Click on Settings>>Media>>MIME Types
- Select the file type you would like to upload in the Media Library
In the case, if the media type is not mentioned,
- Select Add New MIME Type button on the top of the page.
- Provide the Extensions, MIME Type, Singular Label, Plural Label
- Click on Allow Upload button.
- Save the Changes.
Editing wp-config.php File
You can edit the wp-config.php file in order to upload the file in the media library. But, this can make your site less secure. Therefore, you can revert the changes once you upload the unsupported file. In order to do it through the wp-config.php file,
- Access your WordPress Installation Directory through an FTP client or File Manager.
- Open wp-config.php file and paste the below-mentioned syntax(code) anywhere above the line that says ‘That’s all, stop editing! Happy Publishing.’
- Save the changes.
Contacting your Hosting Provider
If both the option doesn’t seem to work in your site, or if you find these methods inappropriate, you can contact your Hosting Provider. You can ask/request them the described file type to make available for upload in the media library. Your hosting provider might restrict some file types as per the security reasons. So, asking them out can help in this situation.
The ‘SORRY THIS FILE IS NOT PERMITTED FOR SECURITY REASONS’ WordPress error occurs when you try uploading the file format your site doesn’t support. We discussed three different ways that you can use to fix such errors. You can simply choose the one that’s easy, simple and best for your site.
Also, follow our tutorials to learn more about WordPress!