If you’ve ever tried to upload a file, especially custom Font to your Divi website and received the “Sorry, this file type is not permitted for security reasons” error, you may feel stumped as to how to proceed. Luckily, there is a way to fix the error and get things back to normal.
In this article, we’ll explain why the “Sorry, this file type is not permitted for security reasons” error appears while uploading custom fonts to Divi and how can solve the error and upload any file to our WordPress site.
Let’s get started!
This file type is not permitted for security reasons
The reason behind this error is WordPress has restricted some types of files that we can upload.
The “Sorry this file type is not permitted for security reasons” appears because the file we are uploading is a prohibited file type.
So in order to fix this error, we need to Allow Unfiltered Uploads in Our wp-config.php File by following the below steps
You must have access to your Website Cpanel File Manager so login to your Cpanel go to the file manager and open up your website root directory and scroll down you will see wp-config.php
What’s the wp-config file?
It’s a file that contains information about your website database. Make sure to back up your site in case something goes wrong when you’re editing.
Just copy the below line of code and paste it anywhere above the line reading “/* That’s all, stop editing. Happy blogging. */”:
If you guys have any questions Let us know in the comments section below! Thank you 🙂
You might be interested in How to fix Elementor 500 Server Error