Increase Max Upload Size WordPress Without Plugin: 5 Ways (2025)

Content Overview

3D illustration of a file uploading to a server with a green checkmark indicating increased size limits.

You need to increase upload size WordPress limits immediately because your website just rejected a critical file. You likely tried to upload a high-quality video background, a large PDF brochure, or a complex theme file, only to face the frustrating error: “Exceeded the maximum upload size for this site.”

This moment halts your workflow completely. By default, many hosting providers set a “safety cap” on file uploads—often as low as 2MB or 8MB. While this saves server resources, it prevents you from building a modern, media-rich website.

Most tutorials suggest installing a plugin to fix this. However, installing a heavy plugin just to change one simple text setting adds unnecessary “bloat” to your database. It slows down your load times and introduces potential security vulnerabilities.

Therefore, the professional solution involves manual configuration. In this guide, we will show you exactly how to adjust these server limits without relying on third-party plugins.

🚀 Need this fixed instantly? If you feel uncomfortable editing server code files like .htaccess or php.ini, Click here to order our Quick Fix Service. We will manually increase upload size WordPress limits and optimize your server configuration within one hour.

In this extensive guide, we will cover 5 proven methods to override these limits using code, ensuring your site stays fast, lean, and plugin-free.

Why You Should Increase Upload Size WordPress Manually

Before we dive into the code, you must understand why we avoid plugins for this specific task. Why go through the trouble to adjust these settings manually?

When you use a plugin to adjust limits, that tool effectively just writes a few lines of code into your server files for you. However, it also loads its own scripts, CSS, and database queries every time your site loads.

Consequently, relying on plugins for simple tasks creates “technical debt.” The more plugins you have, the slower your site becomes. By learning to increase upload size WordPress via server files, you keep your dashboard clean and your performance scores high.

Editing .htaccess code to increase upload size WordPress without plugin.

Understanding the Server Limits

Your WordPress site runs on PHP, a server-side programming language. PHP has three main configuration directives that control file handling. To successfully boost your file capacity, we must adjust:

  1. upload_max_filesize: The maximum size of a single file.

  2. post_max_size: The maximum size of the entire data packet sent to the server (must be larger than the upload size).

  3. max_execution_time: How long the server waits for the upload to finish before giving up.

We will manipulate these three settings in the following methods.

Method 1: Use .htaccess to Increase Upload Size WordPress

For most websites running on shared hosting (like Bluehost, HostGator, or SiteGround), the .htaccess file controls server behavior. This hidden file sits in your website’s root directory and offers the most reliable way to override the default cap.

This method works for servers running on Apache.

Step 1: Connect to Your Server

First, you need to access your files. You can use an FTP client like FileZilla or the File Manager inside your hosting cPanel.

Step 2: Locate the .htaccess File

Next, navigate to the public_html folder. Look for a file named .htaccess.

  • Note: If you cannot see it, look for a “Settings” gear icon in your File Manager and ensure “Show Hidden Files” is checked.

Step 3: Edit the Code

Now, right-click the file and select Edit. Scroll to the very bottom of the file (after the line # END WordPress) and paste the following code snippets to boost the limit:

Apache

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

Step 4: Save and Test

Finally, save the changes. Go back to your WordPress Dashboard, navigate to Media > Add New, and verify that the limit listed at the bottom now says “64 MB”.

You have successfully used .htaccess to increase upload size WordPress settings.

Method 2: Edit php.ini to Increase Upload Size WordPress

If the .htaccess method did not work, or if your host does not allow PHP values in that file, you must use the php.ini file. This is the default configuration file for PHP settings.

This method is powerful and often preferred by developers to adjust file limits globally across the server.

Step 1: Find the php.ini File

Connect via FTP or File Manager. Look in your public_html folder for a file named php.ini.

  • Note: On some shared hosting plans, this file might not exist. If it is missing, simply create a new file, name it php.ini, and upload it to your root folder.

 

Step 2: Add Configuration Directives

Open the file for editing. Paste the following lines of code. If the file already has code, simply modify the existing values to match your desired capacity:

Ini, TOML

upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300

Configuration settings in php.ini to increase upload size WordPress limits.

Step 3: Save and Verify

Save the file. On some hosts, you might need to “Kill PHP Processes” in cPanel for the changes to take effect immediately. Once done, check your Media Library.

This offers a clean, server-level way to increase upload size WordPress capabilities.

Method 3: Use Theme Functions to Increase Upload Size WordPress

If you feel uncomfortable editing server configuration files, you can try adding instructions directly to your WordPress theme. While not as robust as the first two methods, it often works for minor adjustments.

This approach allows you to change the limit by utilizing the functions.php file.

Step 1: Access Theme File Editor

Log in to your WordPress Dashboard. Navigate to Appearance > Theme File Editor.

Step 2: Locate functions.php

On the right-hand sidebar, find the file labeled Theme Functions (functions.php). Click to open it.

Step 3: Insert the PHP Code

Scroll to the bottom of the file. Paste the following code to force the system to accept larger files:

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

Step 4: Update File

Click Update File. Check your Media Library upload screen.

Warning: If you update your theme in the future, these changes will be overwritten. Therefore, using a Child Theme or Method 1/2 is generally safer. However, this remains a valid way to increase upload size WordPress limits temporarily.

Method 4: Nginx Config to Increase Upload Size WordPress

If you host your site on a VPS (Virtual Private Server) or a managed host like Cloudways or Kinsta, you likely use Nginx instead of Apache. Nginx does not use .htaccess files.

Consequently, the previous methods might fail. You must edit the nginx.conf file to change these parameters on high-performance servers.

Note: This requires SSH or Root access.

Step 1: Locate nginx.conf

Connect to your server via Terminal (SSH). Navigate to /etc/nginx/nginx.conf (or /etc/nginx/conf.d/default.conf).

Step 2: Edit the HTTP Block

Open the file and find the http { or server { block. Add the following line to override the default cap:

Nginx

client_max_body_size 64M;

Step 3: Restart Nginx

For the changes to apply, you must restart the server. Run the command: sudo service nginx reload

This is the definitive way to increase upload size WordPress parameters for Nginx users.

WordPress media library screen showing the new 64MB upload limit.

Method 5: Contact Hosting to Increase Upload Size WordPress

Sometimes, no matter what code you change, the limit stays stuck at 2MB or 8MB.

This happens because some shared hosting providers “hard code” these limits at the master server level. Consequently, your local files cannot override them. In this scenario, the only way to fix the issue is to ask for help.

Sample Support Ticket

Copy and paste this message to your hosting support:

“Hello Support, I need to increase upload size WordPress limits for my site. I have attempted to edit my .htaccess and php.ini files, but the limit remains stuck. Could you please increase my upload_max_filesize and post_max_size to 128MB? Thank you.”

Most support teams will perform this change for you within minutes.

Checking Your Success After You Increase Upload Size WordPress

After applying any of these methods, you need to verify that you successfully managed to override the restrictions.

  1. Go to Dashboard: Log in to WordPress.

  2. Navigate to Media: Click Media > Add New.

  3. Look at the Bottom: Under the “Drop files to upload” box, you will see a text line saying: “Maximum upload file size: 64 MB” (or whatever value you set).

If this number has changed from the default (usually 2MB), you have succeeded!

Conclusion on Manual Upload Limits

The “Exceeded maximum upload size” error is annoying, but it is not a permanent roadblock. It is simply a server setting designed to save resources.

By using .htaccess, php.ini, or functions.php, you can tell the server to accept larger files. Furthermore, avoiding plugins for this task keeps your database clean and your site fast.

Summary of Methods:

  1. .htaccess: The best method for shared hosting.

  2. php.ini: The preferred method for developers.

  3. Functions.php: A quick, theme-level fix.

  4. Nginx.conf: Required for VPS users.

  5. Support: The final fallback.

Still Stuck? If you tried all these methods to increase upload size WordPress limits and still see errors, you might have a deeper configuration conflict. 👉 Contact Us Here for a professional server audit, or Order our Emergency Fix Service to get your upload limits resolved today.

Share:

Content Overview

Did this article help you?

If you found this guide useful, you can support our work by buying me a coffee ☕

Still Need Help With Your Website?

Send Us A Message

Related Posts

A laptop screen displaying the HostGator 403 forbidden error message.
Blog
Site Success Partner

HostGator 403 Forbidden Error Fix: 5 Proven Steps (2025)

You are clicking on your website link, expecting to see your homepage. However, instead of your beautiful design, you are greeted by the dreaded HostGator 403 forbidden error screen. The message usually reads: “403 Forbidden – You don’t have permission to access / on this server.” This error stops your

Read More »
Split screen showing the live site vs the environment used to create staging site Hostinger.
Blog
Site Success Partner

Create Staging Site Hostinger: The Step-by-Step Guide (2025)

You need to update a critical plugin or redesign your homepage. However, you are terrified of pressing “Update” and watching your live website crash. Consequently, this is why you need to learn how to create staging site Hostinger environments. A staging site is a clone of your live website. Specifically,

Read More »
Browser screen displaying the error_too_many_redirects WordPress Cloudflare loop message.
Blog
Site Success Partner

Error_too_many_redirects WordPress Cloudflare Fix (2025)

Facing the error_too_many_redirects WordPress Cloudflare loop is a nightmare that can take your entire website offline instantly. You activated Cloudflare to make your site faster, but instead, your browser is displaying a frustrating message: “ERR_TOO_MANY_REDIRECTS”. This is one of the most panic-inducing errors for website owners because it locks you

Read More »
A split screen showing a slow WordPress site versus a fast one optimized with w3 total cache bluehost settings.
Blog
Site Success Partner

Best W3 Total Cache Bluehost Settings: The 2025 Guide

Finding the perfect w3 total cache Bluehost configuration is the single most effective way to transform a sluggish shared hosting site into a high-performance machine. You chose Bluehost for its affordability and WordPress integration, but out of the box, shared servers can struggle under heavy traffic. You likely installed W3

Read More »
Split screen showing cPanel MultiPHP INI Editor and File Manager answering where is php.ini in Namecheap.
Blog
Site Success Partner

Where Is php.ini in Namecheap? Access & Edit Guide (2025)

If you are trying to increase your upload limit or boost your memory cap, you are likely asking: where is php.ini in Namecheap shared hosting? You looked in your File Manager, searched your root folder, and came up empty-handed. This is one of the most common frustrations for Namecheap users.

Read More »
Cloudflare error screen showing the Cloudflare error 521 fix diagram.
Blog
Site Success Partner

Cloudflare Error 521 Fix: 5 Web Server Solutions (2025)

You are searching for a Cloudflare error 521 fix because your website has suddenly vanished behind a Cloudflare branding screen. Instead of your homepage, you see a diagram showing a working browser, a working Cloudflare cloud, but a big red “X” connecting to your Host (Web Server). This specific error

Read More »

Calculators

© 2020–2025 Site Success Partner. All rights reserved.