Skip to content
Home » Fix “Sorry, This File Type Is Not Permitted for Security Reasons” Error in WordPress

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


It is safe to say that you are seeing ‘Sorry, this file type is not permitted for security reasons‘ error in WordPress? You can transfer most normal file types in WordPress with no error. In any case, you may see this error if the file type is not upheld by WordPress. In this article, we will tell you the best way to effortlessly 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 attempt to transfer a file type that WordPress doesn’t uphold.

You may have seen this error message appear when trying to add another file to your Media Library.

For security reasons, WordPress limits the file types you can transfer through your WordPress admin. The permitted file types include every normal picture, video, report, and sound format.

One answer to fix this issue is to transfer the files through FTP or your WordPress hosting file supervisor segment.

Check and Fix the File Type Extension Spelling

If you are trying to transfer a typical file type that you have recently transferred without seeing this error, then almost certainly, you have misspelled the file augmentation.

A file expansion is the 3 or 4 letter filetype suffix that appears toward the finish of file names on your PC. For instance, a picture file might be named holidayphoto.png where the holiday photo is the file name and png is the augmentation.

These expansions are used by numerous projects and applications including WordPress to perceive file types. Following are the default file types and expansions 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

Tip: Although you can transfer recordings to WordPress, we generally prescribe uploading your recordings to a video hosting site instead. This ensures your site’s speed and performance.

At the point when you get this error, the main thing we prescribe is checking the file augmentation to ensure it is right. Now and again, you may coincidentally erase a file name augmentation or mistype it while editing or saving a file on your PC.

On Windows 10, you can undoubtedly check file expansions. Just open the folder that contains your file and click on the ‘View’ link at the highest point of the window. From here, you need to check the ‘File name augmentations’ case.

In the wake of checking that container, you will now see the augmentation after file names.

Note: This will show the expansion for all files on your PC, not simply the ones in this folder.

Mac users can see file expansions by opening the Finder app and going to Finder > Preferences from the top menu.

File Type Extension Spelling

This will bring up the Preferences popup where you need to click on the ‘Advanced’ tab and ensure that the container close to ‘Show all filename expansions‘ option is checked.

Also see: Best WordPress Accordion Plugins

Now that you can see the file name augmentations, find the file you were trying to transfer and ensure it has the right expansion.

If the augmentation is incorrect, then you can basically right-click and select the ‘Rename’ option to change the file name and add the right expansion.

Allow New File Types in WordPress with the File Upload Types Plugin

File Upload Types

If you are uploading a file type that is not upheld by WordPress, then you can in any case transfer it by adding it as an upheld file type.

The File Upload Types plugin is the least demanding approach to fix the “Sorry, this file type is not permitted for security reasons” error.

To start with, you need to install and initiate the File Upload Types plugin.  Upon enactment, go to the Settings > File Upload Types page in your WordPress admin region. Then, basically, type your file type into the search box.

Then, check the container close to the file type(s) that you need to enable and click on the ‘Save Settings’ button at the lower part of the screen to store your changes.

Now, feel free to get back to the media library. You will actually want to add your file(s) without getting an error message.

Leave a Reply