Source: https://divicake.com/blog/increase-maximum-file-upload-size-divi/

[Blog](https://divicake.com/blog/)/[Tips & Tricks](https://divicake.com/category/tips-tricks/)

# How to Increase the Maximum File Upload Size in a Divi Website

By Divi Cake·11 March 2025·Updated 19 August 2026·4 min read

How to Increase the Maximum File Upload Size in a Divi Website

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

On this page

- [Why Increase the File Upload Size in Divi?](https://divicake.com#why-increase-the-file-upload-size-in-divi)
- [How to Check Your Current File Upload Limit](https://divicake.com#how-to-check-your-current-file-upload-limit)
- [Methods to Increase the Maximum File Upload Size in Divi](https://divicake.com#methods-to-increase-the-maximum-file-upload-size-in-divi)

- [1. Increase File Upload Limit Using php.ini](https://divicake.com#1-increase-file-upload-limit-using-phpini)
- [2. Modify the .htaccess File](https://divicake.com#2-modify-the-htaccess-file)
- [3. Increase Upload Size via functions.php](https://divicake.com#3-increase-upload-size-via-functionsphp)
- [4. Use a Plugin to Increase Upload Limit](https://divicake.com#4-use-a-plugin-to-increase-upload-limit)

- [Installation and Setup Steps:](https://divicake.com#installation-and-setup-steps)
- [5. Contact Your Hosting Provider](https://divicake.com#5-contact-your-hosting-provider)
- [Final Thoughts](https://divicake.com#final-thoughts)

If you’re working with the [Divi Theme](https://divicake.com/blog/what-is-divi-wordpress/), you’ll likely need to upload high-resolution images, large video files, or Divi layouts. However, [WordPress](https://divicake.com/blog/wordpress-tutorial/) sets a default upload limit, which can make it frustrating when trying to add bigger files. This restriction can be a problem if you’re customizing your site with media-heavy designs or importing premade [Divi layouts](https://divicake.com/blog/free-divi-layouts/). Instead of resizing files or finding workarounds, the best solution is to increase the maximum file upload size. In this guide, we’ll walk you through different methods to adjust this limit specifically for [Divi websites](https://divicake.com/blog/how-to-determine-if-a-website-is-built-with-divi/), ensuring you can upload files without running into errors.

## Why Increase the File Upload Size in Divi?

[Divi](https://divicake.com/go/divi/) users often need higher upload limits for:

- Uploading large Divi layouts (.json files).
- Adding high-resolution [images for background](https://divicake.com/tagged/13-free-background-images-to-use-on-your-next-divi-website/) sections.
- Importing custom fonts and media-heavy content.
- Installing large plugins that enhance Divi’s functionality.

If your site restricts uploads to a small file size (e.g., 2MB or 8MB), you’ll need to increase it to avoid errors.

## How to Check Your Current File Upload Limit

To see your current limit in Divi:

- Go to WordPress Dashboard → Media → Add New.
- Look for the message: “Maximum upload file size: X MB.”

WordPress Media Library showing the maximum file upload size limit for a Divi website.

Check the Current File Upload Limit in Divi

If the limit is too low, follow one of the methods below to increase it.

## Methods to Increase the Maximum File Upload Size in Divi

Before diving into specific methods, it’s important to understand that the maximum file upload size in Divi is primarily determined by your server settings. If you’re encountering issues uploading large files, adjusting these settings can help. Below, we’ll explore different ways to increase the upload limit, starting with modifying the php.ini file.

### 1. Increase File Upload Limit Using php.ini

If your hosting allows access to the php.ini file, follow these steps:

- Connect to your server using FTP or cPanel’s File Manager.
- Locate the php.ini file in the public_html or wp-admin folder.

Open it and add or modify these lines:

upload_max_filesize = 256M post_max_size = 256M max_execution_time = 300

Editing the php.ini file in cPanel to increase the maximum file upload size for a Divi website.

Increase File Upload Size in Divi Using php.ini

3. Save the file and restart your server if needed.

Read More: [How To Add PHP Code To The Divi Website?](https://divicake.com/blog/how-to-add-php-code-to-the-divi/)

### 2. Modify the .htaccess File

If you can’t access php.ini, try editing .htaccess:

- Use FTP or cPanel to open the .htaccess file in public_html.

Add the following lines at the end of the file:

php_value upload_max_filesize 256M php_value post_max_size 256M php_value max_execution_time 300 php_value max_input_time 300

Modifying the .htaccess file in cPanel to increase the maximum file upload size for a Divi website.

Increase File Upload Size in Divi by Editing .htaccess

2. Save the file and refresh your site.

### 3. Increase Upload Size via functions.php

For quick changes within WordPress, edit your theme’s functions.php file:

- In WordPress, go to Appearance → Theme File Editor.

Open functions.php and add this code at the bottom:

@ini_set('upload_max_filesize', '256M'); @ini_set('post_max_size', '256M'); @ini_set('max_execution_time', '300');

2. Save the changes and test by uploading a large file.

Read More: [How to Add Custom CSS to Divi](https://divicake.com/blog/how-to-add-custom-css-to-divi/)

## 4. Use a Plugin to Increase Upload Limit

If you’d rather not modify files manually, using a plugin is the simplest way to increase the maximum file upload size in a Divi website. Plugins like Increase Maximum Upload File Size let you adjust the limit directly from the WordPress dashboard without dealing with server settings. Here’s how to install and use it:

### Installation and Setup Steps:

- Go to Plugins → Add New in your WordPress dashboard.
- In the search bar, type Increase Maximum Upload File Size and install the plugin.
- Click Activate once the installation is complete.

WordPress dashboard showing the installation and setup process for the Increase Maximum Upload File Size plugin on a Divi website.

Install and Configure Increase Maximum Upload File Size Plugin in Divi

- Navigate to Settings → Increase Maximum Upload File Size from the dashboard.
- Choose a new upload limit from the available options (based on your server’s maximum allowed size).
- Click Save Changes to apply the new limit.

WordPress settings page showing the Increase Maximum Upload File Size plugin options for changing the file upload limit on a Divi website.

Adjust File Upload Limit in Divi Using a Plugin

This method is quick and doesn’t require any coding. However, if your hosting provider has a strict cap, the plugin may not override it. In that case, you might need to adjust settings through cPanel or contact your host for further assistance.Read More:[23 WordPress Plugins for Divi Website](https://divicake.com/blog/wordpress-plugins-for-divi/)

## 5. Contact Your Hosting Provider

Some web hosts have strict limitations on file uploads, preventing changes even if you modify .htaccess****, php.ini, or use a plugin. If you’ve tried these methods and still can’t increase the limit on your Divi website, the best option is to contact your hosting provider directly. Many managed WordPress hosts offer support for adjusting upload limits, and they can often make the change for you. Be sure to ask about any restrictions that might still apply, as some hosts enforce maximum limits based on your plan. If needed, [upgrading to a higher-tier hosting package](https://divicake.com/blog/best-hosting-options-for-divi-and-wordpress/) may provide more flexibility.

## Final Thoughts

If you’re running a [Divi](https://divicake.com/go/divi/) website, increasing the file upload limit is crucial for handling large images, videos, and Divi layout files without running into errors. The right method depends on your hosting environment. If you’re on shared hosting, using a plugin or modifying the .htaccess file is usually the easiest solution. However, if you have a VPS or dedicated server, adjusting the php.ini settings gives you more control over upload limits. If none of these methods work, reaching out to your hosting provider is the best way to ensure your site can handle larger files without restrictions.

Read More: [How to Choose Your Hosting Smartly](https://divicake.com/blog/how-to-choose-your-hosting/)

## 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 Tips & Tricks

[

5 Awesome Uses for Divi's Dynamic Content

Tips & Tricks5 min read

### 5 Awesome Uses for Divi's Dynamic Content

Five Divi layouts — travel, recipes, car rentals, clothing and product reviews — rebuilt as reusable templates with dynamic content.

29 October 2026](https://divicake.com/blog/divi-dynamic-content/)

[

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/)

[

Divi Condition Options Explained

Tips & Tricks6 min read

### Divi Condition Options Explained

How Divi condition options work: show or hide any section, row, column or module by post info, location, user, interaction, device or WooCommerce state.

3 October 2026](https://divicake.com/blog/a-look-at-the-new-divi-condition-options/)
