The error "Sorry, you are not allowed to upload this file type" in WordPress occurs when you try to upload a file type that is not allowed by WordPress's default settings.
Please follow the below steps which helps you to solve these error.
1. Allowed File Types in wp-config.php
You can enable unfiltered uploads to allow all file types:
Inside your cPanel's File Manager, open the wp-config.php file.
Add the following code before the line /* That's all, stop editing! Happy publishing. */: define('ALLOW_UNFILTERED_UPLOADS', true);
Save the file and try uploading again.
2. Modify the upload_mimes Filter
You can explicitly allow specific file types by adding a code snippet to your theme’s functions.php file:
Comment