Upload fails: file exceeds upload_max_filesize

For hosting customers · Updated 2026-10-29

On this page
  1. Symptoms
  2. Causes
  3. Fix
  4. Good to know
  5. Still not working?

Two PHP settings limit what a website can receive in one upload: the size of one file (upload_max_filesize) and the size of the whole form (post_max_size). Both can go up to 2048 MB on the PHP page.

Symptoms

  • "The uploaded file exceeds the upload_max_filesize directive in php.ini."
  • WordPress: "Maximum upload file size: 2 MB" (or another small value) on the media page, or "The link you followed has expired" after uploading a theme or plugin.
  • A form or import silently returns empty, or PHP Warning: POST Content-Length of … bytes exceeds the limit of … on the Errors page.

Causes

  1. Max upload size is lower than the file.
  2. Max POST size is lower than the file (it must be at least as large as the upload size).
  3. The upload takes longer than Max input time (slow connection, large file).
  4. The account's disk space is full, so the file cannot be stored.

Fix

1–3. Raise the limits

  1. Open PHP (section Advanced).
  2. Under PHP settings, set:
    • Max upload size (MB) — at least the size of your largest file.
    • Max POST size (MB) — the same or a little more.
    • Max input time (seconds) — for big files on slow connections, for example 600.
  3. Click Save settings.

Or click a Ready-made button: WordPress (64 MB), WooCommerce / large shop (128 MB) or Large uploads (1024 MB, 30 minutes). The new limits apply to all websites of the account from the next request.

4. Disk full

Open Resource Usage (section Advanced). If Disk space is at its limit, see Disk quota exceeded.

Good to know

  • Files larger than 2 GB cannot be uploaded through a website. Upload them with SFTP (port 22) or FTP with TLS (port 21) instead; they have no size limit except your disk space.
  • File Manager (section Files) uploads up to 2 GB per file, independent of these PHP settings.
  • Values saved on the PHP page take priority over php_value upload_max_filesize lines in .htaccess.

Still not working?

If the application still shows the old limit, it may cap uploads itself (many plugins and forms have their own size setting). If your host has turned on the AI assistant, click Explain with AI on the Errors page.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.