Moritz Reitz
← Back to blog

How to fix max file size error WordPress/Plesk (upload_max_filesize)

How to fix the WordPress max file size upload error in Plesk by updating upload_max_filesize and post_max_size in PHP Settings — no terminal required.

27 March 2025 · Moritz Reitz

If you've ever tried uploading a big file to your WordPress website and got hit with an annoying "file exceeds maximum upload size" error — you're not alone. I recently had to deal with this while working on one of my sites, and after a bit of digging, I found the simplest way to sort it out directly in Plesk, no server restarts or scary terminal commands needed.

So, let me show you exactly how I did it step by step, and how you can do it too.

Step 1: Head to Your Domain Dashboard

First things first:

  1. Log into your Plesk control panel.
  2. On the left, click Domains and pick the domain you're working on.
  3. Once you’re inside, go to the Dashboard tab of that domain — that’s where the magic happens.

Step 2: Tweak the PHP Settings

This is where you’ll increase the limit:

  1. Scroll down and click on PHP Settings.
  2. Find upload_max_filesize (you can search or just scroll through the list).
  3. Increase it to whatever you need — I usually go with something like 64M or 128M depending on the project.

Step 3: Don’t Forget post_max_size — It Caught Me Out!

Here's the bit that tripped me up the first time:
Simply changing upload_max_filesize isn't enough. There's another sneaky setting called post_max_size, and it must be larger than the upload limit, otherwise your new setting won’t even take effect.

For example:
If you set:

  • upload_max_filesize = 64M
    Make sure:
  • post_max_size = 72M (or more, just to be safe)

Think of post_max_size as the size of the whole package, and upload_max_filesize as the size of just the file inside. If the package is too small, it won't fit no matter what. The WordPress documentation on PHP settings covers additional limits like memory_limit that can also affect large uploads.

Step 4: Save and Apply

Once you've updated both values:

  1. Scroll down and hit OK or Apply.
  2. Plesk might suggest restarting PHP — if it does, go ahead and do it.

Step 5: Test It

Now, head back to your site, CMS, or wherever you upload files, and try again. You should now be able to upload much larger files without any errors. It feels like a small victory every time!

Final Tip

I personally like to give myself a little buffer — if I need 50MB uploads, I’ll set upload_max_filesize to 64M and post_max_size to 80M. Just helps avoid edge cases.

And that’s it! No more upload errors. Hope this helps save you the headache I had the first time I ran into it.

If you’re managing a WordPress site on Plesk and need help beyond PHP settings — server configuration, plugin setup, or anything else — the Plesk WordPress documentation is a good reference. For hands-on web development support, feel free to get in touch.

FAQ

What is `post_max_size` and why does it affect WordPress file uploads? `post_max_size` controls the maximum size of the entire HTTP POST request, which includes the file being uploaded. `upload_max_filesize` sets the limit for the file itself. If `post_max_size` is smaller than `upload_max_filesize`, WordPress will still reject uploads even after you raise the upload limit. Always set `post_max_size` slightly higher — for example, if `upload_max_filesize = 64M`, set `post_max_size = 80M`.
What values should I use for `upload_max_filesize` and `post_max_size` in Plesk? It depends on the largest files you need to upload. A good combination for most WordPress sites is `upload_max_filesize = 64M` and `post_max_size = 80M`. For sites with video or high-resolution images, go with `128M` and `160M`. You can set both directly in Plesk under Domains > PHP Settings — no need to touch any config files manually.
Can I fix the WordPress max upload size error without access to Plesk? Yes — two alternatives are adding directives to `.htaccess` (`php_value upload_max_filesize 64M` and `php_value post_max_size 80M`) or using `@ini_set` calls in `wp-config.php`. These only work if your host allows PHP ini overrides via those methods. If you do have Plesk access, the PHP Settings panel is the most reliable approach and takes effect immediately without editing files.

Work with me

Found this helpful?

Get in touch if you need help with your website, SEO, or paid advertising — I offer a free initial consultation.