Webdav Issue - expected filesize

Hey guys,

I don’t know why but this problem arose a couple of days ago and I used owncloud before but that one worked without any problems.

Nextcloud version (eg, 10.0.2): 11.0.1
Operating system and version (eg, Ubuntu 16.04): Shared Webspace / No idea
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 5.6): 7
Is this the first time you’ve seen this error and can you replicate it?: Yes

The issue you are facing:

Can’t upload files using the app or any kind of webdav

The output of your Nextcloud log in Admin > Logging:

Sabre\DAV\Exception\BadRequest: HTTP/1.1 400 expected filesize 10000000 got 2064384
/mnt/web102/d3/49/57807349/htdocs/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 104: OCA\DAV\Connector\Sabre\File->createFileChunked(Resource id #90)
/mnt/web102/d3/49/57807349/htdocs/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 137: OCA\DAV\Connector\Sabre\File->put(Resource id #90)
/mnt/web102/d3/49/57807349/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1072: OCA\DAV\Connector\Sabre\Directory->createFile(‘Book …’, Resource id #90)
/mnt/web102/d3/49/57807349/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525: Sabre\DAV\Server->createFile(‘Device/Book/…’, Resource id #90, NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/mnt/web102/d3/49/57807349/htdocs/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/mnt/web102/d3/49/57807349/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit(‘method PUT’, Array)
/mnt/web102/d3/49/57807349/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/mnt/web102/d3/49/57807349/htdocs/nextcloud/apps/dav/appinfo/v1/webdav.php - line 60: Sabre\DAV\Server->exec()
/mnt/web102/d3/49/57807349/htdocs/nextcloud/remote.php - line 165: require_once(’/mnt/web102/d3/…’)
{main}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Can anyone help me out?

1 Like

*push" problem

If you are using apache2 check: https://github.com/nextcloud/server/issues/15095