Are you seeing ‘Sorry, this file type is not permitted for security reasons’ error in WordPress?
You can upload most common file types in WordPress without any error. However, you may see this error if the file type is not supported by WordPress.
In this article, we will show you how to easily fix ‘Sorry, this file type is not permitted for security reasons’ error in WordPress.
What Causes the “Sorry, This File Type Is Not Permitted for Security Reasons” Error?
The error “Sorry, this file type is not permitted for security reasons” appears when you try to upload a file type that WordPress does not support.
You may have seen this error message appear when trying to add a new file in your Media Library.
For security reasons, WordPress restricts the file types you can upload through your WordPress admin. The permitted file types include all common images, video, document, and audio formats.
However, it is not as convenient as using the built-in WordPress media library.
So let’s take a look at how to fix the “Sorry, this file type is not permitted for security reasons” error in WordPress.
Check and Fix the File Type Extension Spelling
If you are trying to upload a common file type that you have previously uploaded without seeing this error, then it is likely that you have misspelled the file extension.
A file extension is the 3 or 4 letter filetype suffix that appears at the end of file names on your computer. For instance, an image file may be named holidayphoto.png where holidayphoto is the file name and png is the extension.
These extensions are used by many programs and applications including WordPress to recognize file types. Following are the default file types and extensions allowed by WordPress:
Images: .png, .gif, .jpg, .jpeg, .ico
Documents: .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .pps, .ppsx, .odt, .psd
Audio: .wav, .mp3, .m4a, .ogg
Video: .mp4, .m4v, .mpg, .mov, .wmv, .avi, .ogv, .3gp, .3g2
When you get this error, the first thing we recommend is checking the file extension to make sure it is correct. Sometimes, you may accidentally delete a file name extension or mistype it while editing or saving a file on your computer.
On Windows 10, you can easily check file extensions. Simply open the folder that contains your file and click on the ‘View’ link at the top of the window. From here, you need to check the ‘File name extensions’ box.
After checking that box, you will now see the extension after file names.
Note: This will show the extension for all files on your computer, not just the ones in this folder.
Mac users can view file extensions by opening the Finder app and going to Finer » Preferences from the top menu.
This will bring up the Preferences popup where you need to click on the ‘Advanced’ tab and make sure that the box next to ‘Show all filename extensions’ option is checked.
Now that you can view the file name extensions, locate the file you were trying to upload and make sure it has the correct extension.
If the extension is incorrect, then you can simply right-click and select the ‘Rename’ option to change the file name and add the correct extension.
Allow New File Types in WordPress with the File Upload Types Plugin
If you are uploading a file type that is not supported by WordPress, then you can still upload it by adding it as a supported file type.
Upon activation, go to the Settings » File Upload Types page in your WordPress admin area. Then, simply type your file type into the search box.
Next, check the box next to the file type(s) that you want to enable and click on the ‘Save Settings’ button at the bottom of the screen to store your changes.
Now, go ahead and return to the media library. You will be able to add your file(s) without getting an error message.
Keeping Your WordPress Site Secure When Permitting Additional File Types
The reason WordPress blocks many file types is to help keep your WordPress website secure.
When you enable additional file types, we strongly advise that you take some security measures to protect your site.
We hope this article helped you learn how to fix the “Sorry, this file type is not permitted for security reasons” error in WordPress. You may also want to see our expert pick of the must-have WordPress plugins for your website, and bookmark our ultimate guide on how to fix most common WordPress errors.