NetPoa

Fix "The uploaded file exceeds the upload_max_filesize" in WordPress

Updated 27 Nov 2026

WordPress shows messages like "The uploaded file exceeds the upload_max_filesize directive in php.ini" or "… exceeds the maximum upload size for this site" when a file is larger than the PHP limit on your hosting. You can raise it yourself.

Raise the limit

  1. Open cPanel (Services › your hosting › Login to cPanel).
  2. Open Select PHP Version, then the Options tab. (On some accounts: MultiPHP INI Editor, then choose your domain.)
  3. Change these values (each list has fixed choices):
Setting What it does Try
upload_max_filesize Largest single file 64M or 128M
post_max_size Largest upload in total; must be at least upload_max_filesize the same or larger
memory_limit Memory for each request 256M
max_execution_time Seconds a request may run 120 or 300
  1. The values save as you choose them. Go back to WordPress and reload Media › Add New Media File: the "Maximum upload file size" under the upload box shows the new limit.

More about this screen: Select PHP Version.

Other ways around it

  • Very large files (videos, big backups): upload them with File Manager or FTP, not through WordPress: see Upload your website. For videos, a YouTube link is usually better for your visitors and your disk space.
  • Images: resize photos before uploading (a phone photo can be 5 MB; 300 KB is enough for a website). It also makes your site faster: see Make your WordPress site faster.
  • Themes and plugins as ZIP: or install them from Plugins › Add New Plugin directly.

Still limited after changing the values? Your plan's disk may be full: see See what is using your disk space, or open a ticket.

Kwa Kiswahili

WordPress ikikataa faili kubwa: cPanel › Select PHP Version › Options, ongeza upload_max_filesize (mfano 128M), post_max_size (sawa au zaidi) na memory_limit (256M). Faili kubwa sana (video) zipakie kwa File Manager au tumia YouTube.


Still need help? Open a ticket and we will reply.

Was this helpful?