How to Fix “Sorry, This File Type Is Not Permitted for Security Reasons” Error in WordPress & WooCommerce

Uploading a Media file to WordPress or Importing Products with CSV in WooCommerce and suddenly WordPress says sorry to you ? The message typically looks like this
[filename] has failed to upload.
Sorry, This File Type Is Not Permitted for Security Reasons
Well tension not, Wordpress says sorry for your website safety. By default WordPress limits the File types you can upload. By Default These are the file-types that are supported in WordPress upload
Image Types
- JPG
- JPEG
- PNG
- GIF
- ICO
Video Types
- .mp4
- .mov
- .m4v
- .wmv
- .avi
- .mpg
- .ogv
- .3gp .3g2
Document Types
- .doc .docx
- .ppt .pptx .ppsx
- .odt
- .xls .xlsx
Audio Types
- .mp3
- .m4a
- .ogg
- .wav
If you are trying to upload file types that are not listed above WordPress may show the security error.
What Triggers the error ?
By default it triggers from two upload screen
- During Adding Media files from Media Upload Screen
- During Importing WooCommerce Products via .csv file
How to Fix Error : “Sorry, This File Type Is Not Permitted for Security Reasons”
Navigate to wp-config.php file in your WordPress main Directory via file-manager from cPanel or via FTP.

Open the file in editor (notepad++ is preferred) and the below code anywhere in the file. Its better to add it with a note for future reference
define('ALLOW_UNFILTERED_UPLOADS', true);

Save the file , if you using FTP upload and replace the file. Now try uploading the error should be fixed
You can also used 3rd-party plugin to add the permission for file types. But its prefer to stick to basic solution. Additional plugin may slowdown the site performance.
You Might Also Like:
- InterServer Review – Are they Reliable?
- Siteground Reviews – Is It Good, Bad, or Reliable?
- Bluehost Review – Is It Good, Bad, or Reliable?
- Dreamhost Review – Is It Good, Bad, or Reliable?
- a2Hosting Review – Is It Good, Bad, or Reliable?
- iPhone SE vs Google Pixel 3a || Make The Right Buy
- Ryzen 3100 and 3300x || Is Intel in trouble?
- Cloudways Vs Siteground – Which Wins The Battle?
- 7 Best iPhone SE Cases – Complete Review Combo for User Support
- Let’s See Which iPhone Has The Best Camera
- Best Feature Phone, Less Hacks To Use.
- 5 Best Avatar App | Check out and Create Your One
- Top 5 Best Free Reliable VPN For Android
- 7 Best Point And Shoot Camera: Make A Right Decision For Yourself
- Best Budget Gaming PC under $500
- How To Switch From iPhone To Android: A Beginner’s Guide
- How to Create Hosting Packages in Centos Web Panel(CWP)
- How to update date.timezone from cPanel