View Categories

Reading Time: 2 min read

Fixing WordPress Media Library Error “Sorry You are Not Allowed to Upload this File Type” #

Fixing WordPress Media Library Error, Understanding WordPress Media Library Errors: When you attempt to upload a file to your WordPress Media Library, you may encounter the error message, “Sorry, you are not allowed to upload this file type.” This typically happens when trying to upload a file with an unsupported file extension.

WordPress supports the following file types:

  • Supported Image Extensions: .jpeg, .jpg, .png, .gif, .ico
  • Supported Document Extensions: .pdf, .psd, .xlsx, .odt, .ppsx, .pps, .pptx, .docx, .doc
  • Supported Audio Extensions: .mp3, .wav, .ogg
  • Supported Video Extensions: .mp4, .wmv, .ogv, .3g2, .avi, .m4v, .3gp

Attempting to use extensions not included in this list will trigger the error message, “Sorry, you are not allowed to upload this file type.”

Fixing WordPress Media Library

To facilitate file uploads, access Site Tools > Site > File Manager and modify the wp-config.php file within your WordPress site. This file can be found in the public html folder.

Then, above the line that states, “That’s all, stop editing! Happy publishing,” insert the following command:

define(‘ALLOW_UNFILTERED_UPLOADS’, true);

After saving your changes, you should be able to upload the desired file through WordPress wp-admin > Media > Add New.

Fixing WordPress Media Library FAQ's #

Why am I unable to view images in the WordPress media library?

WordPress Media Library Not Displaying Images

If your Media Library loads but doesn’t display images, it could be due to two main reasons: an incompatible plugin or incorrect file permissions. Test your plugins as advised above, and if they’re not the issue, check the file permissions.