Source: https://divicake.com/blog/how-to-enable-any-file-type-uploads-in-divi/

[Blog](https://divicake.com/blog/)/[Blogging](https://divicake.com/category/blogging/)

# How To Enable Any File Type Uploads In Wordpress/Divi

By Divi Cake·17 June 2024·Updated 23 June 2024·4 min read

Enabling uploads for additional file types in WordPress/Divi can be useful for expanding the range of content you can share on your site.

We may earn a commission from affiliate links in this post. [Disclosure policy](https://divicake.com/affiliate-disclosure-policy/)

On this page

- [Install the File Manager plugin](https://divicake.com#install-the-file-manager-plugin)
- [Edit the Wp-Config.php File](https://divicake.com#edit-the-wp-configphp-file)
- [ Insert the Given Line of Code](https://divicake.com#insert-the-given-line-of-code)
- [Upload Any File](https://divicake.com#upload-any-file)
- [Conclusion:](https://divicake.com#conclusion)

Welcome to our tutorial where we’ll help you break free from the restrictions of WordPress and [Divi](https://divicake.com/go/divi/) when it comes to uploading files. Have you ever felt limited by the types of files you can upload to your website? Maybe you’ve wanted to add SVGs, RAR files, or other uncommon formats, but hit a roadblock? Well, today, we’re here to change that.

In this guide, we’ll show you how to open up your [WordPress](https://divicake.com/blog/wordpress-tutorial/) site to accept any kind of file you want. Whether you’re a coding whiz or just starting out with WordPress, we’ve got you covered. With just a simple tweak, you’ll be able to upload a wide range of file types, giving you the flexibility to showcase your work in the best possible way.

No more frustration with WordPress’s limited options. By following our step-by-step instructions, you’ll learn how to take control of your website’s capabilities and make it truly your own. Say goodbye to restrictions and hello to endless possibilities.

So, if you’re ready to take your WordPress or Divi website to the next level, join us as we walk you through the process of enabling file uploads for any type of file. Let’s dive in and unlock the full potential of your website together.

Read More: [Divi WordPress Theme Review](https://divicake.com/blog/divi-theme-review/)

## Install the File Manager plugin

To get started, we need to access the website files. For this, we’ll use the [File Manager plugin](https://wordpress.org/plugins/wp-file-manager/) to easily reach your WordPress files. This plugin acts like a gateway, allowing us to make changes and enhancements to your site directly. So, before we proceed with enabling file uploads, let’s connect to your website files using the File Manager plugin.

The File Manager plugin acts like a gateway, allowing us to make changes and enhancements to your site directly.

Installing the the File Manager plugin

## Edit the Wp-Config.php File

Once you’ve gained access to your WordPress files through the File Manager plugin, the next step is to locate and edit the wp-config.php file. This file is like the control center of your WordPress site, where important configurations are stored. By making changes to this file, we can customize and enhance the functionality of your website. So, let’s dive in and make the necessary adjustments to the wp-config.php file to enable the file uploads you desire.

The wp-config.php file in a code editor window, allowing you to make the required modifications directly within the plugin interface.

Editing the Wp-Config.php File

To proceed with editing the wp-config.php file, you’ll need to right-click on it within the File Manager plugin interface. After right-clicking, a menu will appear, and from there, select the option labeled “Code editor.” This will open up the wp-config.php file in a code editor window, allowing you to make the required modifications directly within the plugin interface. Let’s take this step to move forward in enabling the file uploads on your WordPress site.

Read More: [What is Divi – Divi WordPress Theme & Visual Page Builder](https://divicake.com/blog/what-is-divi-wordpress/)

Editing the wp-config.php file, you’ll need to right-click on it within the File Manager plugin interface.

Accessing the wp-config.php file

##  Insert the Given Line of Code

Next, scroll down to the bottom of the wp-config.php file, and insert the given line of code there. This line of code is what will enable the functionality for uploading all types of files on your WordPress site. So, once you’ve reached the end of the file, simply paste the provided code snippet in the designated spot. This action will ensure that your WordPress site is configured to accept any file type for uploads. Let’s proceed by inserting the code snippet into the wp-config.php file to complete the setup for enabling file uploads.

define( ‘ALLOW_UNFILTERED_UPLOADS’, true );

Inserting the given line of code will ensure that your WordPress site is configured to accept any file type for uploads.

Inserting the given line of code

## Upload Any File

After inserting the code snippet into the wp-config.php file, it’s time to test whether the changes have taken effect. You can do this by attempting to upload a file type that was previously restricted by WordPress. Try uploading a file format that WordPress typically does not allow, such as SVG, RAR, or any other file type you desire. Once you’ve attempted the upload, take a moment to check if the file successfully uploaded without any errors. If the file uploads without any issues, you can confirm in the comments section or by any preferred means that the changes have indeed worked. This step ensures that your WordPress site is now capable of accepting a broader range of file types for uploads. Let’s proceed with this test to verify the effectiveness of the changes made.

Read More:[23 WordPress Plugins for Divi Website in 2024](https://divicake.com/blog/wordpress-plugins-for-divi/)

## Conclusion:

In wrapping up, we’ve successfully tackled the hurdles of file type restrictions on your WordPress or Divi website. With the steps we’ve covered, you’ve learned how to grant your website the freedom to accept any file format you choose, be it SVG, RAR, or any other.

Now, gone are the days of feeling restricted in showcasing your work or sharing essential resources with your audience. Through a few simple adjustments to your WordPress configuration, you’ve opened up a world of possibilities, allowing your creativity to flow unrestricted.

By utilizing the File Manager plugin, editing the wp-config.php file, and adding the provided line of code, you’ve taken charge of your website’s capabilities, making it uniquely yours. As you test and confirm the successful upload of previously restricted file types, you can breathe easy knowing your website can handle a wide array of content.

Thank you for joining us on this journey to unlock the full potential of your WordPress or Divi website. We trust this guide has equipped you to elevate your website to new heights and embrace the limitless opportunities that come with enabling file uploads for any file type.

Read More: [A Simple Guide to Creating a One-Page Website with Divi](https://divicake.com/blog/one-page-website-guide/)

## Written by Divi Cake

Divi 5 tutorials, layouts and fixes from the team that builds Divi sites every week.

- [About Divi Cake](https://divicake.com/about/)

## Get the Divi Cake newsletter

New Divi tutorials and Divi Cake product news, by email.

First name (optional)Email

Company website

SubscribeSubscribeSubscribe

Unsubscribe any time. [Privacy policy](https://divicake.com/privacy/)

The sign-up form needs JavaScript for its spam check.

Almost done. Click the link in the email we just sent to confirm your subscription. If you are already subscribed, there is nothing more to do.

## Submit a comment

Comments are read before they appear. Your email is not published.

Comment

NameEmail

Company website

Submit commentSubmit commentSubmit comment

The comment form needs JavaScript for its spam check.

Thanks. Your comment is waiting for review and will appear here once it is approved.

## Do you need help with …

- [Divi 5 migration](https://divicake.com/divi-4-to-divi-5-migration/)
- [Divi websites](https://divicake.com/divi-website-development/)
- [Divi plugins](https://divicake.com/divi-plugin-development/)
- [Fix a site](https://divicake.com/fix-existing-site/)
- [Beyond Divi](https://divicake.com/beyond-divi/)
- [Technical SEO](https://divicake.com/technical-seo/)
- [SEO content](https://divicake.com/seo-content/)

## Newsletter

New Divi tutorials and Divi Cake product news, by email.

First name (optional)Email

Company website

SubscribeSubscribeSubscribe

Unsubscribe any time. [Privacy policy](https://divicake.com/privacy/)

The sign-up form needs JavaScript for its spam check.

Almost done. Click the link in the email we just sent to confirm your subscription. If you are already subscribed, there is nothing more to do.

## Save Annually on Divi

[Save 69% on Divi VIP](https://divicake.com/go/divi-vip/)[Save 69% on Divi Cloud](https://divicake.com/go/divi-cloud/)[Save 69%, Divi Team](https://divicake.com/go/divi-teams/)

## WordPress Hosting & Tools

[100% off on Kinsta for 1 Month](https://divicake.com/go/kinsta/)[Get up to 62% off Bluehost hosting.](https://divicake.com/go/wordpress-hosting-blue-host/)[Save Up to 15% on Rank Math](https://divicake.com/go/rank-math/)[Get 50% OFF on all WPForms plans](https://divicake.com/go/wpforms/)

## More in Blogging

[

How to make money with Divi

Blogging10 min read

### How to Make Money with Divi

Nine ways to earn an income with Divi — affiliate marketing, services, digital products, courses, memberships, sponsored posts and ads — and what your site needs before any of them work.

15 October 2026](https://divicake.com/blog/make-money-with-divi/)

[

Customizing Divi for advanced WordPress development projects

Blogging4 min read

### Customizing Divi for Advanced WordPress Development Projects

Seven ways to take Divi past its stock settings on an advanced build: custom CSS and JavaScript, child themes, integrations, hooks and filters, and performance work.

11 October 2026](https://divicake.com/blog/customizing-divi/)

[

Selling Divi websites and child themes

Blogging10 min read

### How to Make Money Selling Divi Websites and Child Themes

How to earn from Divi three ways: building sites for clients, selling finished websites through a brokerage or marketplace, and packaging child themes for sale.

29 September 2026](https://divicake.com/blog/selling-divi-websites-and-child-themes/)
