Fix “Sorry,This File Type Is Not Permitted for Security Reasons” Error in WordPress
Sorry,This File Type Is Not Permitted for Security Reasons
If you Got the error“Sorry, this file type is not permitted for security reasons” error and you tried to
upload a file to your media library, you could get stunned as to how this should be done.
There are, thankfully, some ways to repair the mistake and get things back to normal.
In this post, we will clarify why the error ““Sorry, this file type is not permitted for security reasons”
occurs in WordPress. Then we’ll show you Best ways to correct the error and upload your WordPress site to any file.
Reasons to Got This “Sorry, this file type is not permitted for security reasons”
The explanation for this WordPress mistake is much simpler than it seems.
It may not be understood, but the WordPress file types you may upload are limited.
When attempting to upload the forbidden file form, “Sorry, this file type is not permitted for security reasons” error occurs.
- 100+ Profitable Micro Niche Blog Ideas 2021|Top Blogging Niches
- 10 Best Ways Make Money From Home In Coronavirus
- What Is Meta Tags? How To Add Meta Tags In Blogger?
- List Of Insurance Companies In Pakistan | Insurance In Pakistan
- Highest CPC Keywords And Best Adsense Niches For Urdu Blogger
- Adsense High CPC Keywords List 2020
It is because of the security concerns that file upload vulnerabilities that these restrictions avoid.
The accidental or deliberate upload of malicious executable files could harm your website permanently.Others can give your website or server access to hackers.
Although you can not upload files to your site with this mistake, for your users, this is also valid.
Almost anything could be posted to your website without any “roadblocks,” which naturally represents a huge risk.
In short, the “Sorry, this file type is not permitted for security reasons” error protecting your website is in place,
and is probably not the worst WordPress error. However, this well-meaning mistake is still problematic if you have to upload a forbidden file form.
Allow Unfiltered Uploads in Your wp-config.php File
You can use wp-config.php-the file with details about the database on your site to allow all the file types to be uploaded. Again, if something goes wrong when you delete, you’ll want to back up your site.
You can then use FTP, as defined in the previous process, to access wp-config.php. You can find the file in your website’s root directory. To open the text editor, click View / Edit.
You can add the following code to the file, anywhere above the line reading “/* That’s all, stop editing. Happy blogging. */”: