// 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
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
FIX 1Raise PHP limits
- 01Increase upload_max_filesize, post_max_size and memory limit in php.ini
- 02In the official Docker image set PHP_UPLOAD_LIMIT and PHP_MEMORY_LIMIT
- 03Restart PHP-FPM or the container
Did this fix it?FIX 2Raise the web server or proxy limit
- 01Set client_max_body_size (for example 10G, or 0) in nginx
- 02Check sites-available files and the proxy's advanced settings for older smaller values
- 03Run nginx -T | grep client_max_body_size to confirm, then reload
Did this fix it?FIX 3Lower the client chunk size behind Cloudflare
- 01Edit the desktop client's nextcloud.cfg
- 02Set maxChunkSize below 100 MB (for example 50000000)
- 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 usThe same problem in other apps
All plan limits, paywalls & watermarks guides →
Dropbox Basic 3 Device Limit Reached (Dropbox)
Other Nextcloud errors
- Nextcloud Access Through Untrusted Domain Error
- Why Is Nextcloud So Slow?
- Nextcloud Desktop Client Sync Slow
- Nextcloud Sync Error: Connection Closed
- Nextcloud File Is Locked (423) Error
- Nextcloud Stuck in Maintenance Mode
- Nextcloud Internal Server Error After Update or App Install
- Nextcloud Client CSync Unknown Error