By default, WordPress places restrictions on which types of files may be uploaded. There may, however, be times when you need to upload an unsupported file type, resulting in an error stating File Type Not Supported.
There are several ways around this, including using plugins and changing WordPress MultiSite settings. Here we cover the steps to remove this restriction by modifying the site's wp-config.php file.
Related Articles
Getting Started with cPanel
Edit File with File Manager
Upload Large Files to WordPress
Find the Document Root of a Domain
Modify wp-config.php File
- Log into cPanel
- Navigate to the File Manager, located under the Files section
- Navigate to the document root for the applicable website
- Right-click on the wp-config.php file
- Click Edit
- Check if the site is a WordPress Multisite
- If the site is a WordPress Multisite, the following steps do not work for subsites
TIP: There is a reported workaround but it is out of scope for our support. - Add the following code to the file
define('ALLOW_UNFILTERED_UPLOADS', true);
TIP: This can be added right before the line that says That’s all, stop editing! Happy blogging.
- Click the Save Changes button