How to Allow All File Types

For security reasons, WordPress allows uploading of only commonly used file types such as:

  • Images: .jpg, .jpeg, .png, .gif, .ico, .webp

  • Documents: .pdf, .doc, .docx, .ppt, .pptx, .pps, .ppsx, .odt, .xls, .xlsx, .psd, .xml

  • Audio: .mp3, .m4a, .ogg, .wav

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

Some file types are blocked due to security risks:

  • Images: .svg, .bmp

  • Documents: .psd, .ai, .pages

  • Code files: .css, .js, .json

  • Video: .flv, .f4l, .qt

If you try to upload unsupported file types, you'll see the error message, "Sorry, you are not allowed to upload this file type."

  • Access the wp-config.php file by going through; WP Dashboard>> File Manager>> example.com (main domain folder), also known as/public_html directory.

  • Edit the wp-config.php file, then find and add the following line of code at the end of the file before the /* That's all, stop editing; phpCopy codedefine('ALLOW_UNFILTERED_UPLOADS', true); .

Save changes.

Last updated