Filester
  • Introduction
  • Getting Started
    • How to Install
      • Install via WP repository
      • Install via your computer
      • How to deactivate and delete
  • How It Works
    • File Manager
    • Settings
    • User Role Restrictions
  • Use Cases
    • How to get info of MySQL Settings in wp-config.php
    • How to Change WordPress Debugging Mode
    • How to Disable Automatic Updates in WordPress
    • How to Allow All File Types
    • How to Replace Files
    • How to Download a Specific Plugin Zip File
  • Other Links
    • Changelog
    • Support
Powered by GitBook
On this page
  1. Use Cases

How to Allow All File Types

PreviousHow to Disable Automatic Updates in WordPressNextHow to Replace Files

Last updated 10 months ago

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.

Save changes.

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); .

Edit