Learning how to increase maximum file upload size in WordPress usually starts the same way: you try to upload a video, a chunky PDF, or a theme file, and WordPress stops you with a message that the file exceeds the maximum upload size for this site. The limit is rarely WordPress being awkward. It comes from your server settings, and in most cases you can raise it yourself in under ten minutes.
This guide works through the methods in the order a site owner would sensibly try them, from the easiest fix to the fiddlier ones. You will find out where the limit actually lives, which number to set, and what to do when a change seems to have no effect at all.
Where the WordPress Upload Limit Actually Comes From
Three layers can cap your uploads: your PHP configuration, your hosting plan, and WordPress itself. The number shown in your media library is the lowest of the three, which is why changing one setting sometimes changes nothing on screen.
Before touching anything, check the number you are starting from. In your dashboard, go to Media, then Add New. WordPress prints the maximum upload file size just under the upload box — something like “Maximum upload file size: 2 MB”. That figure is your baseline, and it tells you how far you need to go. A site that mostly handles photos and PDFs might be fine at 32 MB, while one that takes client videos or large theme files will want 64 MB or 128 MB.

Three PHP values do most of the work here, and it helps to know what each one does before you edit anything:
- upload_max_filesize — the largest single file WordPress will accept.
- post_max_size — the largest total size of a whole upload request. This must be equal to or larger than upload_max_filesize, or the bigger value never takes effect.
- max_execution_time — how long PHP will keep working on one request. Large files on slow connections can time out even when the size limit is fine.
On shared hosting, your plan may also impose its own ceiling. Some budget plans cap uploads at 32 MB or 64 MB no matter what you type into a settings screen. If every method below seems to fail, that plan cap is the most likely culprit, and only your host can lift it.
Method 1: Raise the Limit in Your Hosting Panel
For most people, this is the fix. Hosting panels such as cPanel and hPanel include a PHP settings or MultiPHP INI Editor section, and changing two numbers there updates the limit across your whole site. No plugins, no code, and nothing to break.
- Log in to your hosting control panel and open the PHP settings area. In cPanel it is usually called “MultiPHP INI Editor” or “Select PHP Version” followed by “Options”; in hPanel, look under Advanced and then “PHP Configuration”.
- Select your domain from the dropdown if the panel asks which site the settings apply to. On accounts with several sites, picking the wrong one is a common reason a change appears to do nothing.
- Set upload_max_filesize to 64M and post_max_size to 64M or 128M. Keep post_max_size at least as large as upload_max_filesize — setting it to double gives form data and file data room to travel together.
- Raise max_execution_time to 300 if you upload large files over a slow connection. The default of 30 seconds is short for a 100 MB file on home broadband.
- Save the settings, wait a minute, then refresh Media, Add New in WordPress and check the number under the upload box. If it shows your new value, you are done.
If the number has not moved, check whether your panel saved the change for the right PHP version or the right domain. Some hosts run a separate PHP configuration per version, so a change made under PHP 8.2 does nothing if your site actually runs PHP 8.3. If you are unsure which version your site uses, our guide to how to update the PHP version in WordPress shows where to check and how to switch safely.
Method 2: Use a Plugin to Raise the Limit
If your host offers no PHP editor, a small upload-limit plugin can raise the WordPress-side limit up to whatever the server allows. Search the plugin directory for “increase upload file size”, install one with recent updates and solid reviews, and set your new limit from its settings page or straight from Media, Add New.
Be clear about the boundary here: no plugin can push past a hard server cap. A plugin is genuinely useful when the server allows 128 MB but WordPress itself is set to 2 MB — a mismatch that is surprisingly common on fresh installs. It is useless when the server ceiling is the blocker, and in that case the plugin changing nothing is actually useful information: it tells you the limit lives at server level, and the hosting panel method or a support ticket is the real answer.

Two habits keep this method tidy. First, remove the plugin once the limit is set if it was a one-off fix — a plugin that sits idle still needs updates. Second, re-check the displayed limit after deactivating it; on some setups the plugin’s value disappears with it, in which case the panel method is the lasting fix.
Method 3: Edit wp-config.php, .htaccess, or php.ini
Older tutorials suggest editing files directly to raise the limit, and these methods still work on some servers — mainly VPS hosting and unmanaged plans where you control the configuration. On managed WordPress hosting they are often ignored entirely, because the host’s own configuration overrides them. Try the panel first; come here only if the panel is unavailable.
Whichever file you touch, back it up before you edit it. Download a copy to your computer, or better still, take a full backup first — our guide to how to back up a WordPress site for free covers the quickest ways to do that. One typo in wp-config.php or .htaccess can take a site down, so the backup is what turns a mistake into a five-minute fix.
Editing wp-config.php
Add these lines just above the line that reads “That’s all, stop editing!”:
@ini_set( 'upload_max_filesize' , '64M' );
@ini_set( 'post_max_size', '64M' );
@ini_set( 'max_execution_time', '300' );
Save, upload the file back if you edited it locally, and check the media library figure. If nothing changes, your host is overriding PHP values at server level, and this route is a dead end for your setup.
Editing .htaccess
On Apache servers, you can add these lines to the .htaccess file in your site’s root folder:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
This only works when PHP runs as an Apache module. On servers running PHP-FPM — which is most modern shared hosting — these lines are ignored, or worse, they trigger a 500 error. If your site breaks the moment you save, remove the lines immediately and restore your backup copy. If you do see a 500 error after any file edit, the steps in our guide to how to fix the WordPress 500 internal server error will get you back online.
Adding or editing php.ini
Some hosts let you place a php.ini or user.ini file in your site’s root with these lines:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
Whether this works depends entirely on the host. Many managed hosts ignore custom php.ini files, and a few require the file in a specific folder. If the media library number stays put after a few minutes, the file is being ignored and there is no point tweaking it further.
Method 4: Ask Your Host to Raise the Limit
When none of the methods above moves the number, stop guessing and open a support ticket. Hosts deal with this request every day, and on many plans they can raise the limit from their side in a couple of minutes. Tell them the exact value you want, the file types you upload, and what you have already tried — that short list saves a round of back-and-forth questions.
There are two outcomes worth knowing about. Sometimes support raises the limit and the media library figure changes straight away. Sometimes they tell you the limit is fixed on your plan, and the only way up is a higher tier. That is a genuine answer, not a brush-off: on the cheapest shared plans, upload caps are part of how the host keeps hundreds of sites stable on one server. At that point the decision is a commercial one — pay for the next tier, or host large files elsewhere.
What Size Should You Actually Set?
Bigger is not automatically better. For most sites, 64 MB covers large images, PDFs, theme files, and short video clips comfortably. Sites that take long videos or big downloadable files may need 128 MB or more, though hosting video elsewhere is usually the smarter call.
Before raising limits to extremes, ask whether the file should be smaller in the first place. Compress videos before uploading, or host long videos on a video platform and embed them, which keeps your site fast and your backups small. Compress PDFs and images as a habit, not an exception — a 40 MB PDF that compresses to 6 MB never needed a limit change at all.

Very high limits also carry a small security cost, giving attackers a bigger opening if an upload form is ever abused. Set the limit your real work needs, with a little headroom, rather than the largest number the panel allows. A 512 MB limit on a blog that never uploads anything over 10 MB is all risk and no benefit.
And remember that the upload limit is not the same as storage. Raising the size of individual files does nothing about a hosting plan that only includes 10 GB of disk space, so keep an eye on total media library size as well as the per-file number.
Troubleshooting: When the Limit Will Not Change
Three problems account for almost every stubborn case, so work through them in this order.
The limit changed back after a day or two
Host updates, PHP version changes, or a server move can reset PHP settings to their defaults. If the figure drops again, reapply it in the hosting panel and ask support whether a plan-level setting is overriding yours. A limit that resets itself every week is a hosting issue, not something you did wrong.
Large uploads still time out
Timeouts are usually the execution time or a slow connection, not the size limit. Raise max_execution_time, try uploading from a faster connection, and split very large files where you can. Uploading a 200 MB video over hotel Wi-Fi will struggle whatever the limit says.
The media library number never moves at all
Check three things: that you edited the settings for the right domain and PHP version, that no caching layer is showing you a stale dashboard (log out and back in, or try a private browser window), and that your plan does not hard-cap uploads. If all three check out, the support ticket from Method 4 is the next step.
If you edit files to test a fix, do it on a copy of the site first when you can. Our guide to how to create a WordPress staging site shows how to set one up, and it is the safest place to try configuration changes without risking the live site.
Frequently Asked Questions
What is a good maximum upload size for WordPress?
For most sites, 64 MB is a sensible default. It covers large images, PDFs, and theme files with room to spare. Sites uploading long videos or big downloads may need 128 MB, though hosting video on a dedicated platform and embedding it is usually smarter than uploading it directly.
Why did my upload limit change back?
Host updates, PHP version changes, or moving to a new server can reset PHP settings to their defaults. Reapply the values in your hosting panel, and ask support whether a plan setting is overriding yours if it keeps happening.
Why does my large upload still time out?
Timeouts are usually caused by max_execution_time or a slow connection, not the size limit itself. Raise the execution time in PHP settings and try a faster connection before assuming the site is at fault.
Can I increase the limit on WordPress.com?
Upload limits on WordPress.com depend on your plan and cannot be changed with PHP settings, because it is a managed service. Higher plans include larger storage and media allowances, so upgrading is the only route there.
Does a plugin really increase the upload size?
Only up to the server ceiling. A plugin can raise the WordPress-side limit when the server already allows more, but it cannot push past a hard limit set by your host. If a plugin changes nothing, the server limit is the blocker.
Final Check Before You Move On
Raise the limit through your hosting panel, confirm the new number on the Media, Add New screen, and test it with a real file of the size you actually use. Keep the value sensible — 64 MB for most sites, 128 MB if you genuinely need it — and keep compressing large files before they reach the media library. That combination gives you room to work without bloating backups or opening a wider door than your site needs.

