WordPress

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

Sometimes you need to upload files in our WordPress website and it gives the error that “This file type is not permitted for security reasons” This message is given because WordPress limits the types of file format we can upload. WordPress does it for the security reason.

We can upload most common files like images, video easily in WordPress without any error. But for uploading some types of file it shows the error. So here in this article I will show you when  this error occurs and how you can get rid of this type of file uploading error.

Why this error occur?

When you want to upload any file that is not supported in WordPress, this error message will appear. We can see the error in uploading new files in the media library.

WordPress makes this error for the security issue. All the common file formats are supported by WordPress.

For uploading the file check your extinction. Suppose you want to upload any image but the extinction is wrong then it won’t be uploaded in WordPress. So make sure the extinction spelling is right.

By default, you can upload these types of files

Images

  • .jpg .
  • jpeg 
  • .png 
  • .gif 
  • .ico

Audio:

  • .mp3
  • .m4a
  • .ogg
  • .wav

Videos:

  • .mp4
  • .m4v
  • .mov
  • .wmv
  • .avi
  • .mpg
  • .ogv
  • .3gp
  • .3g2

Documents

  • .pdf
  • .doc 
  • .ppt, 
  • .pptx
  • .pps,
  • .ppsx 
  • .odt 
  • .xls
  • .xlsx 
  • .psd

How to fix this error

There are two easy ways to fix this error. You can install additional plugins to improve your file types or you can add a little bit of code in your website’s Configure.php  file. You can expand your file types with these two methods. It enables you to add your desired file format in your WordPress website. Here i will show you how you can enable the features using   Configure.php  file

Upload permitted file type using configure.php

From the configure.php  file you can enable Allow_Unfiltered_Upload  option. When we enable it we will be capable of uploading any types of file we want.

To set this you need to edit your configure.php file.  So it’s very important to make a backup of this file. Make sure you backup your file. 

You will find your configure.php file in your website root folder. Open the file in the editor and add these little code snippets. 

That’s it. You are all done, save your changes. This little code allows you to upload your files without any error.

You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *