How to Fix the “Sorry, You Are Not Allowed to Upload This File Type” Error (Divi)
How to Fix the Error Sorry, You Are Not Allowed to Upload This Type of File in Divi
Introduction to the Error
The error Sorry, You Are Not Allowed to Upload This Type of File is a common issue faced by users of the Divi theme in WordPress. This error appears when attempting to upload a specific type of file on the website using the Divi Builder, and the error message prevents the upload of those files. This error may be due to incorrect settings on the site or restrictions on the types of files that can be uploaded.
Reasons Behind the Error
This error can occur due to several factors, including:
- Security settings in WordPress that prevent the upload of certain file types.
- Server settings that may impose restrictions on the types of files that can be uploaded.
- Settings within Divi itself that may require updating or modification.
How to Fix the Error
Here are some methods you can follow to fix this error:
1. Modify the .htaccess File Settings
Editing the .htaccess file may help resolve the issue. Add the following code to the .htaccess file located in the root folder of your site:
# Add allowed file types SecFilterEngine Off SecFilterScanPOST Off
2. Edit the wp-config.php File Settings
You can add the following code to the wp-config.php file to enable the upload of allowed file types:
define('ALLOW_UNFILTERED_UPLOADS', true);
3. Remove File Upload Restrictions in WordPress
You can modify file upload settings from the WordPress dashboard. Go to Settings then Media to specify the allowed file types. Ensure that the file you are trying to upload is included in these types.
4. Update Divi and WordPress
Make sure both the Divi theme and the version of WordPress you are using are updated. The fix may be part of new updates to resolve known issues.
5. Contact Hosting Support
If the problem persists, the issue may relate to server settings. Contact your hosting service provider to find out if there are any restrictions on the types of files that can be uploaded.
Conclusion
Fixing the Sorry, You Are Not Allowed to Upload This Type of File error in Divi is straightforward when following the correct steps. Be sure to update all settings and plugins you use on your site to avoid this issue in the future.