// troubleshooting guide · owncloud
ownCloud Large File Upload Fails (413 Request Entity Too Large)
- Status
- Workaround available
- platforms:
- Self-hosted ownCloud Classic and Infinite Scale
- updated:
- November 16, 2026
- reports:
- 4
- Method
- how we research
RUNBOOK · owncloud/upload-large-files-fails4 FIXES
// quick answer
A 413 usually comes from the web server or reverse proxy, not PHP. Raise nginx client_max_body_size or Apache LimitRequestBody, then set the PHP upload limits in the file your setup actually reads.
Most likely fix: Raise the proxy limit
How to fix it
// try these in order, the most common fix is first
FIX 1Raise the proxy limit
- 01nginx: set client_max_body_size (e.g. 16G) in the server block and reload
- 02Apache: raise LimitRequestBody and increase RequestReadTimeout or disable mod_reqtimeout
Did this fix it?FIX 2Set PHP limits
- 01Set upload_max_filesize=16G, post_max_size=16G, max_input_time=3600, max_execution_time=3600, output_buffering=0
- 02With php-fpm put them in .user.ini in the ownCloud root; with mod_php use php_value lines in .htaccess
- 03Restart PHP and the web server
Did this fix it?FIX 3Give uploads temp space
- 01Point upload_tmp_dir (or tempdirectory in config.php) to a disk with room for the largest file
- 02Make it writable by www-data
- 03On RHEL set PrivateTmp=false via systemctl edit httpd
Did this fix it?FIX 4Extend timeouts for long uploads
- 01Raise session_lifetime in config.php above your longest upload
- 02Raise filelocking.ttl for long uploads to public folders
Did this fix it?
Symptoms
Uploads over a size (often 512 MB or 1 GB) fail with '413 Request Entity Too Large' or stop near the end, in the browser, desktop client or rclone.
Why it happens
- C-01Apache 2.4.54+ defaults LimitRequestBody to 1 GB
- C-02nginx client_max_body_size too small on the reverse proxy
- C-03PHP upload_max_filesize / post_max_size too low, or .htaccess overriding php.ini
- C-04Upload not chunked (public links, some WebDAV tools)
- C-05Not enough temp space for chunk assembly
// this guide also covers
- owncloud 413 request entity too large
- owncloud upload large files
- owncloud upload limit
- owncloud big file upload
Still not working?
If ownCloud keeps failing, you're not alone. See every ownCloud 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
Other ownCloud errors
- ownCloud Desktop Client Not Syncing
- ownCloud Desktop App 7 Not Connecting to ownCloud Server
- ownCloud File Is Locked (Server Replied 423 Locked)
- ownCloud Access Through Untrusted Domain Error
- ownCloud Stuck in Maintenance Mode After Update
- ownCloud Integrity Check Failed (Some Files Have Not Passed)
- ownCloud Unable to Open or Create the Local Sync Database
- ownCloud Virtual Files Not Working on Windows