How to Fix the “Maximum Upload Size Exceeded” Error When Migrating WordPress (2026)
2026-11-23
Your backup is bigger than your host's upload limit? Here are four ways to fix it, from raising the PHP limit to uploading in pieces with no limit at all.
You export your site, start the import on the new host, and get stopped: "The uploaded file exceeds the upload_max_filesize directive", or "Maximum upload file size: 64 MB". Your backup is 2 GB. Here's why it happens and how to get past it.
Why the limit exists
Every server caps how big a single upload can be. Three PHP settings decide it:
upload_max_filesize: the largest single file.post_max_size: the largest whole request (must be at least as big as the file).memory_limitandmax_execution_time: how much memory and time the import may use.
On shared hosting these are often 32–128 MB, and you may not be allowed to change them.
Fix 1: Upload in pieces (no limit at all)
The easiest fix is a plugin that never sends one big file. NoLimit Migration splits the backup into small pieces that each stay under your host's limit, uploads them one after another, and joins them on the server. If a piece fails, only that piece is sent again.
- Install NoLimit Migration on the new site.
- Go to NoLimit Migration → Restore / Import and drop your backup file on the upload area.
- Wait for the upload to finish and click Restore now.
It works the same for a 200 MB site and a 20 GB one, and it's free.
Fix 2: Import from a URL
Even better for big sites: don't upload at all. Create a transfer link on the old site (NoLimit Migration → Backups → Transfer link) and paste it into Import from URL on the new site. The new server downloads the backup directly, in resumable chunks, server to server.
Fix 3: Raise the PHP limits
If you control the server, raise the limits. Add to .htaccess (Apache):
php_value upload_max_filesize 2048M
php_value post_max_size 2048M
php_value memory_limit 512M
php_value max_execution_time 300
Or to php.ini / .user.ini:
upload_max_filesize = 2048M
post_max_size = 2048M
memory_limit = 512M
max_execution_time = 300
Many hosts ignore these files or cap the values; then ask support, or use Fix 1 or 2. Also note that Cloudflare and some proxies reject single uploads above 100 MB no matter what PHP allows, which is another reason chunked uploads are more reliable.
Fix 4: Move the files by hand
Upload the site's files over FTP or SFTP, import the database with phpMyAdmin or the command line, then replace the old URLs carefully (serialized data breaks if you do a plain text replace). It works, but it's slow and error-prone. Our migration guide explains each step.
Which fix should you use?
| Situation | Best fix |
|---|---|
| Shared hosting, can't change PHP settings | Upload in pieces (Fix 1) |
| Both sites are online | Import from URL (Fix 2) |
| Your own VPS and a site under ~1 GB | Raise the limits (Fix 3) |
| WordPress won't run on the new server yet | By hand (Fix 4), or let us do it |
Download NoLimit Migration free and stop worrying about upload limits.