Skip to content

[Bug]: Upload to public link ends with "Fehler beim Hochladen, Statuscode 413" at files larger than 1GB #54576

@Volker-K

Description

@Volker-K

⚠️ This issue respects the following points: ⚠️

Bug description

User shares a public link to a folder. Someone tries to upload files by dragging and dropping them. Uplad works with files up to about 1GB, upload fails with files larger than 1 GB.
For the user uploading the file the progress bar works as expected, but ends with "Fehler beim Hochladen, Statuscode 413", on the server there is an error reported in the moment the upload beginns:

Aug 22 08:06:39 lxcloudp01 Nextcloud[129779]: {"reqId":"R39DRPivp7Rx5v06nkyp","level":3,"time":"2025-08-22T08:06:39+02:00","remoteAddr":"10.100.41.75","user":false,"app":"no app in context","method":"PUT","url":"/public.php/dav/files/E62SmbtC9rWoJfY/_data.zip","message":"{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Erwartete Dateigr\u00f6\u00dfe von 1885333508 Bytes, aber 0 Bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.","Code":0,"Trace":[{"file":"/srv/www/htdocs/owncloud/apps/dav/lib/Connector/Sabre/Directory.php","line":116,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/srv/www/htdocs/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced "]},{"file":"/srv/www/htdocs/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":[" sensitive parameters replaced ***"]},{"file":"/srv/www/htdocs/owncloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/srv/www/htdocs/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/www/htdocs/owncloud/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/www/htdocs/owncloud/apps/dav/appinfo/v2/publicremote.php","line":151,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/srv/www/htdocs/owncloud/public.php","line":82,"args":["/srv/www/htdocs/owncloud/apps/dav/appinfo/v2/publicremote.php"],"function":"require_once"}],"File":"/srv/www/htdocs/owncloud/apps/dav/lib/Connector/Sabre/File.php","Line":259,"message":"Erwartete Dateigr\u00f6\u00dfe von 1885333508 Bytes, aber 0 Bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.","exception":{},"CustomMessage":"Erwartete Dateigr\u00f6\u00dfe von 1885333508 Bytes, aber 0 Bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein."}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0","version":"31.0.4.1"}

"Expected filesize of 1885333508 Bytes, but 0 bytes read"

Steps to reproduce

  1. Create a public link
  2. Upload a file larger than 1 GB
  3. Voilà

Expected behavior

Upload should work

Nextcloud Server version

31

Operating system

Other

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "maintenance": false,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "...",
            
        ],
        "theme": "",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "maintenance_window_start": 1,
        "dbtype": "mysql",
        "version": "31.0.4.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "installed": true,
        "appstoreenabled": true,
        "knowledgebaseenabled": false,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "updatechecker": false,
        "logtimezone": "Europe\/Berlin",
        "remember_login_cookie_lifetime": 1000,
        "session_lifetime": 900,
        "singleuser": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 4,
        "log_type": "syslog",
        "trashbin_retention_obligation": "auto, 360",
        "overwriteprotocol": "https",
        "overwrite.cli.url": "https:\/\/...",
        "default_language": "de_DE",
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "auth.bruteforce.protection.enabled": false,
        "integrity.check.disabled": true,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "proxy": "...:8080",
        "proxyexclude": [
            "cloud.itk-rheinland.de"
        ],
        "defaultapp": "files",
        "mysql.utf8mb4": true,
        "disable_mobile_push": true,
        "data-fingerprint": "fc174b5fd6632ca4a252c91d01cd6d83",
        "app_install_overwrite": []
    }
}

List of activated Apps

Enabled:
  - activity: 4.0.0
  - admin_audit: 1.21.0
  - announcementcenter: 7.1.4
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - calendar: 5.3.8
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contacts: 7.2.4
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - deck: 1.15.2
  - federatedfilesharing: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - nextcloud_announcements: 3.0.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0-dev.1
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - support: 3.0.0
  - systemtags: 1.21.1
  - tasks: 0.16.1
  - terms_of_service: 4.4.0
  - text: 5.0.0
  - theming: 2.6.1
  - theming_customcss: 1.18.0
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.0
  - user_ldap: 1.22.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - encryption: 2.19.0 (installed 2.7.0)
  - federation: 1.21.0 (installed 0.0.4)
  - files_external: 1.23.0
  - firstrunwizard: 4.0.0 (installed 1.1)
  - sharebymail: 1.21.0 (installed 1.0.1)
  - survey_client: 3.0.0 (installed 0.1.5)
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - updatenotification: 1.21.0 (installed 0.1.0)

Nextcloud Signing status

-

Nextcloud Logs

Aug 22 08:06:39 lxcloudp01 Nextcloud[129779]: {"reqId":"R39DRPivp7Rx5v06nkyp","level":3,"time":"2025-08-22T08:06:39+02:00","remoteAddr":"10.100.41.75","user":false,"app":"no app in context","method":"PUT","url":"/public.php/dav/files/E62SmbtC9rWoJfY/_data.zip","message":"{\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\BadRequest\",\"Message\":\"Erwartete Dateigr\\u00f6\\u00dfe von 1885333508 Bytes, aber 0 Bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.\",\"Code\":0,\"Trace\":[{\"file\":\"/srv/www/htdocs/owncloud/apps/dav/lib/Connector/Sabre/Directory.php\",\"line\":116,\"function\":\"put\",\"class\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File\",\"type\":\"->\"},{\"file\":\"/srv/www/htdocs/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":1098,\"function\":\"createFile\",\"class\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory\",\"type\":\"->\",\"args\":[\"*** sensitive parameters replaced ***\"]},{\"file\":\"/srv/www/htdocs/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php\",\"line\":504,\"function\":\"createFile\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\",\"args\":[\"*** sensitive parameters replaced ***\"]},{\"file\":\"/srv/www/htdocs/owncloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php\",\"line\":89,\"function\":\"httpPut\",\"class\":\"Sabre\\\\DAV\\\\CorePlugin\",\"type\":\"->\"},{\"file\":\"/srv/www/htdocs/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":472,\"function\":\"emit\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/srv/www/htdocs/owncloud/apps/dav/lib/Connector/Sabre/Server.php\",\"line\":49,\"function\":\"invokeMethod\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/srv/www/htdocs/owncloud/apps/dav/appinfo/v2/publicremote.php\",\"line\":151,\"function\":\"start\",\"class\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Server\",\"type\":\"->\"},{\"file\":\"/srv/www/htdocs/owncloud/public.php\",\"line\":82,\"args\":[\"/srv/www/htdocs/owncloud/apps/dav/appinfo/v2/publicremote.php\"],\"function\":\"require_once\"}],\"File\":\"/srv/www/htdocs/owncloud/apps/dav/lib/Connector/Sabre/File.php\",\"Line\":259,\"message\":\"Erwartete Dateigr\\u00f6\\u00dfe von 1885333508 Bytes, aber 0 Bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.\",\"exception\":{},\"CustomMessage\":\"Erwartete Dateigr\\u00f6\\u00dfe von 1885333508 Bytes, aber 0 Bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.\"}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0","version":"31.0.4.1"}

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap31-feedbackbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions