// 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
Share

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

  1. FIX 1Raise the proxy limit

    1. 01nginx: set client_max_body_size (e.g. 16G) in the server block and reload
    2. 02Apache: raise LimitRequestBody and increase RequestReadTimeout or disable mod_reqtimeout
    Did this fix it?
  2. FIX 2Set PHP limits

    1. 01Set upload_max_filesize=16G, post_max_size=16G, max_input_time=3600, max_execution_time=3600, output_buffering=0
    2. 02With php-fpm put them in .user.ini in the ownCloud root; with mod_php use php_value lines in .htaccess
    3. 03Restart PHP and the web server
    Did this fix it?
  3. FIX 3Give uploads temp space

    1. 01Point upload_tmp_dir (or tempdirectory in config.php) to a disk with room for the largest file
    2. 02Make it writable by www-data
    3. 03On RHEL set PrivateTmp=false via systemctl edit httpd
    Did this fix it?
  4. FIX 4Extend timeouts for long uploads

    1. 01Raise session_lifetime in config.php above your longest upload
    2. 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 us

Watch ownCloud 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 not loading, error messages & connection guides →

Other ownCloud errors

All 12 ownCloud errors and fixes →