Skip to content
Tools

Max Upload Size Fixer

Raise the upload limit — and get all three values consistent

Runs in your browser. Nothing is uploaded.

Target
Where can you edit files?

Hosts differ in what they let you touch. Generate the format you can actually use — and if the first one silently does nothing, that usually means your host overrides it, so try the next.

Resulting upload limit

128 MB

settings

wp-config.php can raise WordPress's own memory limit, but it cannot raise PHP's upload_max_filesize — that is a PHP directive, not a WordPress one. If your host locks PHP settings, no amount of wp-config editing will change the upload cap, and you will have to ask them.

About the Max Upload Size Fixer

WordPress upload limits are set in three places that must agree: upload_max_filesize, post_max_size, and memory_limit. Set your target size and this emits all three, correctly ordered, for php.ini, .htaccess, and wp-config.php.

FAQ

Questions

I raised upload_max_filesize and nothing changed. Why?

Because WordPress uses the SMALLEST of three values: upload_max_filesize, post_max_size, and memory_limit. Raising one while another stays low changes nothing. post_max_size must be larger than upload_max_filesize, because the request body carries the file plus the form around it.

Can wp-config.php raise the upload limit?

Only partially, and this trips a lot of people up. wp-config.php can raise WordPress's memory limit, but upload_max_filesize is a PHP directive that PHP has usually already finished reading by the time WordPress loads. If your host locks PHP settings, no amount of wp-config editing will change the cap.

My host won't let me edit php.ini. What now?

Try a .user.ini file in your web root — many shared hosts read it. If that fails too, the limit is enforced above your account and only your host can change it. Ask them; it is usually a one-line ticket.