// troubleshooting guide · nextcloud

Nextcloud Upload Size Limit and 413 Error

Status
Workaround available
platforms:
Self-hosted, web, desktop, WebDAV
updated:
November 16, 2026
reports:
4
Method
how we research
Share

RUNBOOK · nextcloud/upload-size-limit3 FIXES

// quick answer

Large uploads fail when PHP, the web server, a reverse proxy or Cloudflare caps the request size. Raise limits at every layer and lower the client chunk size if a CDN caps at 100 MB.

Most likely fix: Raise PHP limits

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Raise PHP limits

    1. 01Increase upload_max_filesize, post_max_size and memory limit in php.ini
    2. 02In the official Docker image set PHP_UPLOAD_LIMIT and PHP_MEMORY_LIMIT
    3. 03Restart PHP-FPM or the container
    Did this fix it?
  2. FIX 2Raise the web server or proxy limit

    1. 01Set client_max_body_size (for example 10G, or 0) in nginx
    2. 02Check sites-available files and the proxy's advanced settings for older smaller values
    3. 03Run nginx -T | grep client_max_body_size to confirm, then reload
    Did this fix it?
  3. FIX 3Lower the client chunk size behind Cloudflare

    1. 01Edit the desktop client's nextcloud.cfg
    2. 02Set maxChunkSize below 100 MB (for example 50000000)
    3. 03Restart the client
    Did this fix it?

Symptoms

Uploads fail at a fixed size such as 100 MB or 512 MB, with 413 Request Entity Too Large, 'Connection closed' or stalled uploads.

Why it happens

  • C-01PHP upload_max_filesize or post_max_size too low
  • C-02nginx client_max_body_size or Apache limit too low
  • C-03Reverse proxy (for example Nginx Proxy Manager) with its own limit
  • C-04Cloudflare free plan caps requests at about 100 MB
  • C-05A site-specific config overriding the main value

// this guide also covers

  • nextcloud upload limit
  • nextcloud 413 request entity too large
  • nextcloud large file upload fails

Still not working?

If Nextcloud keeps failing, you're not alone. See every Nextcloud problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch Nextcloud Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All plan limits, paywalls & watermarks guides →

Other Nextcloud errors

All 10 Nextcloud errors and fixes →